using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace zzz.Model { /// /// /// /// public class RootEntityTkey where Tkey : IEquatable { /// /// ID /// 泛型主键Tkey /// [SugarColumn(IsNullable = false, IsPrimaryKey = true,ColumnDescription ="主键")] public Tkey Id { get; set; } /// /// 创建ID /// [SugarColumn(IsNullable = true, ColumnDescription = "创建者ID")] public long? CreateId { get; set; } /// /// 创建者 /// [SugarColumn(Length = 50, IsNullable = true, ColumnDescription = "创建者名称")] public string CreateBy { get; set; } /// /// 创建时间 /// [SugarColumn(IsNullable = true, ColumnDescription = "创建时间")] public DateTime? CreateTime { get; set; } = DateTime.Now; /// /// 修改ID /// [SugarColumn(IsNullable = true, ColumnDescription = "修改ID")] public long? ModifyId { get; set; } /// /// 修改者 /// [SugarColumn(Length = 50, IsNullable = true, ColumnDescription = "修改者名称")] public string ModifyBy { get; set; } /// /// 修改时间 /// [SugarColumn(IsNullable = true, ColumnDescription = "修改时间")] public DateTime? ModifyTime { get; set; } /// ///获取或设置是否禁用,逻辑上的删除,非物理删除 /// [SugarColumn(IsNullable = true, ColumnDescription = "逻辑删除")] public bool IsDeleted { get; set; } = false; } }