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