using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using FreeSql.DataAnnotations; namespace Admin.Core.Common.BaseModel { /// /// 实体创建 /// public class EntityAdd : Entity, IEntityAdd where TKey : struct { /// /// 创建者Id /// [Description("创建者Id")] [Column(Position = -3, CanUpdate = false)] public long? CreatedUserId { get; set; } /// /// 创建者 /// [Description("创建者")] [Column(Position = -2, CanUpdate = false), MaxLength(50)] public string CreatedUserName { get; set; } /// /// 创建时间 /// [Description("创建时间")] [Column(Position = -1, CanUpdate = false, ServerTime = DateTimeKind.Local)] public DateTime? CreatedTime { get; set; } } public class EntityAdd : EntityAdd { } }