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