using System.ComponentModel.DataAnnotations.Schema; namespace YLErp.DBModels { [Table("appconfig")] public class AppConfig : IClonable, 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 { } }