using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using FreeSql.DataAnnotations; namespace Admin.Core.Common.BaseModel { /// /// 实体完整类 /// public class EntityFull : Entity, ITenant, IEntityVersion, IEntitySoftDelete, IEntityAdd, IEntityUpdate where TKey : struct { /// /// 租户Id /// [Description("租户Id")] [Column(Position = -10, CanUpdate = false)] public virtual long? TenantId { get; set; } /// /// 版本 /// [Description("版本")] [Column(Position = -9, IsVersion = true)] public long Version { get; set; } /// /// 是否删除 /// [Description("是否删除")] [Column(Position = -8)] public bool IsDeleted { get; set; } = false; /// /// 创建者Id /// [Description("创建者Id")] [Column(Position = -7, CanUpdate = false)] public long? CreatedUserId { get; set; } /// /// 创建者 /// [Description("创建者")] [Column(Position = -6, CanUpdate = false), MaxLength(50)] public string CreatedUserName { get; set; } /// /// 创建时间 /// [Description("创建时间")] [Column(Position = -5, CanUpdate = false, ServerTime = DateTimeKind.Local)] public DateTime? CreatedTime { get; set; } /// /// 修改者Id /// [Description("修改者Id")] [Column(Position = -4, CanInsert = false)] public long? ModifiedUserId { get; set; } /// /// 修改者 /// [Description("修改者")] [Column(Position = -2, CanInsert = false), MaxLength(50)] public string ModifiedUserName { get; set; } /// /// 修改时间 /// [Description("修改时间")] [Column(Position = -1, CanInsert = false, ServerTime = DateTimeKind.Local)] public DateTime? ModifiedTime { get; set; } } /// /// 实体完整类 /// public class EntityFull : EntityFull { } }