persistence/Persistence/Models/ChangeLogDto.cs

50 lines
919 B
C#

namespace Persistence.Models;
/// <summary>
/// Часть записи описывающая изменение
/// </summary>
public class ChangeLogDto<T> : IChangeLogDto
where T: class
{
/// <summary>
/// Запись
/// </summary>
public required T Item { get; set; }
/// <summary>
///
/// </summary>
public int Id { get; set; }
/// <summary>
///
/// </summary>
public int IdAuthor { get; set; }
/// <summary>
///
/// </summary>
public int? IdEditor { get; set; }
/// <summary>
///
/// </summary>
public DateTimeOffset Creation { get; set; }
/// <summary>
///
/// </summary>
public DateTimeOffset? Obsolete { get; set; }
/// <summary>
///
/// </summary>
public int? IdNext { get; set; }
/// <summary>
///
/// </summary>
public required object Value { get; set; }
}