using System; using System.ComponentModel; namespace Znyc.Recruitment.Admin.Commons.Entitys { /// /// 定义领域对象框架实体类的基类,系统默认主键为Id /// /// 实体主键类型 [Serializable] public abstract class BaseEntity : Entity, IBaseEntity { /// /// 创建者Id /// [Description("创建者Id")] public TKey CreatedUserId { get; set; } /// /// 创建时间 /// [Description("创建时间")] public DateTime CreatedTime { get; set; } /// /// 是否删除 /// [Description("是否删除")] public bool IsDeleted { get; set; } = false; /// /// 修改者Id /// [Description("修改者Id")] public TKey ModifiedUserId { get; set; } /// /// 修改时间 /// [Description("修改时间")] public DateTime ModifiedTime { get; set; } /// /// Id /// [Description("Id")] public TKey Id { get; set; } } /// /// public class BaseEntity : BaseEntity { } }