using System;
namespace SharedLibraryCore.Dtos
{
///
/// data transfer class for audit information
///
public class AuditInfo
{
///
/// name of the origin entity
///
public string OriginName { get; set; }
///
/// id of the origin entity
///
public int OriginId { get; set; }
///
/// name of the target entity
///
public string TargetName { get; set; }
///
/// id of the target entity
///
public int? TargetId { get; set; }
///
/// when the audit event occured
///
public DateTime When { get; set; }
///
/// what audit action occured
///
public string Action { get; set; }
///
/// additional comment data about the audit event
///
public string Data { get; set; }
private string oldValue;
///
/// previous value
///
public string OldValue { get => oldValue ?? "--"; set => oldValue = value; }
private string newValue;
///
/// new value
///
public string NewValue { get => newValue ?? "--"; set => newValue = value; }
}
}