using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tiger.Model { /// /// 实体基类特性 /// public class EntityBase : Attribute { public string Description { get; private set; } public EntityBase(string description = "") { Description = description; } } /// /// 实体基类接口 /// public interface iEntity { } /// /// 数据库实体基类接口 /// public interface iDBEntity : iEntity { } /// /// 数据库视图基类接口 /// public interface iViewEntity : iDBEntity { } /// /// 数据库实体基类接口(包含授权字段 ID) /// public interface iTableHasID : iDBEntity { #region 公共属性 /// /// 主键 GUID(NOT NULL) /// string ID { get; set; } #endregion } /// /// 数据库实体基类接口(包含授权字段 CREATE_TIME,CREATE_USER,UPDATE_TIME,UPDATE_USER) /// public interface iTableHasCrUp : iDBEntity { #region 公共属性 /// /// 创建时间(NOT NULL) /// DateTime CREATE_TIME { get; set; } /// /// 创建者(NOT NULL) /// string CREATE_USER { get; set; } /// /// 修改时间 /// DateTime UPDATE_TIME { get; set; } /// /// 修改者 /// string UPDATE_USER { get; set; } #endregion } /// /// 数据库实体基类接口(包含授权字段 GHOST_ROW) /// public interface iTableHasGhost : iDBEntity { #region 公共属性 /// /// 删除标记(True:1/False:0) /// bool GHOST_ROW { get; set; } #endregion } /// /// 数据库实体基类接口(包含授权字段 AUTH_ORG,AUTH_PROD,AUTH_WH) /// public interface iTableHasAuth : iDBEntity { #region 公共属性 /// /// 组织机构授权标识 /// string AUTH_ORG { get; set; } /// /// 生产单元授权标识 /// string AUTH_PROD { get; set; } /// /// 仓库单元授权标识 /// string AUTH_WH { get; set; } #endregion } }