using SqlSugar; using System; namespace ZJ_BYD.Model { public class BaseModel { [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "createdtime", IsOnlyIgnoreUpdate = true)] public DateTime? CreatedTime { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "createdby", IsOnlyIgnoreUpdate = true)] public string CreatedBy { get; set; } /// /// 最后一次修改时间 /// [SugarColumn(ColumnName = "updatedtime", IsOnlyIgnoreInsert = true)] public DateTime? UpdatedTime { get; set; } /// /// 最后一次修改者Id /// [SugarColumn(ColumnName = "updatedby", IsOnlyIgnoreInsert = true)] public string UpdatedBy { get; set; } } }