persistence/Persistence/Models/ChangeLogDto.cs

50 lines
919 B
C#
Raw Normal View History

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