using System; using DS.Module.Core.Extensions; using DS.Module.Core.Modules; using Microsoft.Extensions.DependencyInjection; namespace DS.Module.Core.Data; /// /// 实体类基类 /// public abstract class BaseModel { /// /// 主键ID /// [SqlSugar.SugarColumn(IsPrimaryKey = true,Length = 100,ColumnDescription="主键ID")] public TKey Id { get; set; } /// /// 备注 /// public string Note { get; set; } /// /// 创建时间 /// [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true,ColumnDescription="创建时间")] public DateTime AddTime { get; set; } /// /// 创建人 /// [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true,IsNullable = true,ColumnDescription="创建人")] public string AddBy { get; set; } /// /// 修改人 /// [SqlSugar.SugarColumn(IsNullable = true,ColumnDescription="修改人")] public string UpdateBy { get; set; } /// /// 更新时间 /// [SqlSugar.SugarColumn(ColumnDescription="更新时间")] public DateTime UpdateTime { get; set; } /// /// 删除 /// [SqlSugar.SugarColumn(ColumnDescription="是否删除")] public bool Deleted { get; set; } /// /// 删除时间 /// [SqlSugar.SugarColumn(ColumnDescription="删除时间")] public DateTime DeleteTime { get; set; } /// /// 删除人 /// [SqlSugar.SugarColumn(IsNullable = true,ColumnDescription="删除人")] public string DeleteBy { get; set; } }