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