31 lines
875 B
C#
31 lines
875 B
C#
using System.Text.Json;
|
|
|
|
namespace DD.Persistence.Models;
|
|
|
|
/// <summary>
|
|
/// Индексируемого поле из схемы для набора данных
|
|
/// </summary>
|
|
public class SchemePropertyDto : IEquatable<SchemePropertyDto>
|
|
{
|
|
/// <summary>
|
|
/// Индекс поля
|
|
/// </summary>
|
|
public required int Index { get; set; }
|
|
|
|
/// <summary>
|
|
/// Наименование индексируемого поля
|
|
/// </summary>
|
|
public required string PropertyName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Тип индексируемого поля
|
|
/// </summary>
|
|
public required JsonValueKind PropertyKind { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public bool Equals(SchemePropertyDto? other)
|
|
{
|
|
return Index == other?.Index && PropertyName == other?.PropertyName && PropertyKind == other?.PropertyKind;
|
|
}
|
|
}
|