Files
zszq-trs/Framework/YLErp.Core/DBModels/AppConfig.cs
T
2024-05-09 14:06:26 +08:00

56 lines
1.1 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace YLErp.DBModels
{
[Table("appconfig")]
public class AppConfig : IClonable<AppConfig>, IDataTraceV2
{
private string pValue;
public string PGroup { get; set; }
public string PName { get; set; }
public string PValue
{
get => pValue; set
{
if (pValue != value)
{
pValue = value;
OptDate = DateTime.Now;
}
}
}
public string PType { get; set; }
public string Remark { get; set; }
public DateTime CreateTime { get; set; }
public DateTime OptDate { get; set; }
public AppConfig Clone()
{
return (AppConfig)MemberwiseClone();
}
public string GetDataTraceKeyId()
{
return $"{PGroup}.{PName}";
}
public string GetDataTraceKeyInfo()
{
return string.Empty;
}
}
[NotMapped]
public class AppConfigDto : AppConfig
{
}
}