using Yitter.IdGenerator; namespace ERP.Framework.WebApi { public abstract class BaseEntity { public BaseEntity() { this.Id = YitIdHelper.NextId(); } /// /// 主键Id /// public virtual long Id { get; set; } /// /// 创建时间 /// public virtual DateTime CreateTime { get; set; } /// /// 创建人 /// public virtual string CreateBy { get; set; } = string.Empty; /// /// 更新时间 /// public virtual DateTime? UpdateTime { get; set; } /// /// 更新人 /// public virtual string? UpdateBy { get; set; } } }