namespace Tiobon.Core.Model { public class EntityAttribute : Attribute { /// /// 真实表名(数据库表名,若没有填写默认实体为表名) /// public string TableName { get; set; } /// /// 表中文名 /// public string TableCnName { get; set; } ///// ///// 子表 ///// //public Type[] DetailTable { get; set; } ///// ///// 子表中文名 ///// //public string DetailTableCnName { get; set; } ///// ///// 数据库 ///// //public string DBServer { get; set; } ////是否开启用户数据权限,true=用户只能操作自己(及下级角色)创建的数据,如:查询、删除、修改等操作 //public bool CurrentUserPermission { get; set; } //public Type ApiInput { get; set; } //public Type ApiOutput { get; set; } } public class EntityColumnAttribute : Attribute { /// /// 是否校验唯一性 /// public bool IsOnly { get; set; } = true; } }