1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 15:52:25 -05:00

Initial .net 6 upgrades

This commit is contained in:
RaidMax
2022-01-26 10:32:16 -06:00
parent 513f0afd34
commit 6f6dd035ee
170 changed files with 2805 additions and 2577 deletions

View File

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