diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml
index 3432ff8a..9f7e8985 100644
--- a/Tiobon.Core.Api/Tiobon.Core.Model.xml
+++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml
@@ -1794,6 +1794,16 @@
Ghra_Grade
+
+
+ 真实表名(数据库表名,若没有填写默认实体为表名)
+
+
+
+
+ 表中文名
+
+
以下model 来自ids4项目,多库模式,为了调取ids4数据
diff --git a/Tiobon.Core.Common/Tiobon.Core.Common.csproj b/Tiobon.Core.Common/Tiobon.Core.Common.csproj
index 2d619448..c5bbb911 100644
--- a/Tiobon.Core.Common/Tiobon.Core.Common.csproj
+++ b/Tiobon.Core.Common/Tiobon.Core.Common.csproj
@@ -9,6 +9,9 @@
+
+
+
@@ -47,6 +50,7 @@
+
diff --git a/Tiobon.Core.Model/Entity/AttributeManager/EntityAttribute.cs b/Tiobon.Core.Model/Entity/AttributeManager/EntityAttribute.cs
new file mode 100644
index 00000000..068259c2
--- /dev/null
+++ b/Tiobon.Core.Model/Entity/AttributeManager/EntityAttribute.cs
@@ -0,0 +1,32 @@
+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; }
+ }
+}
diff --git a/Tiobon.Core.Model/Models/Ghra/Ghra_Grade.cs b/Tiobon.Core.Model/Models/Ghra/Ghra_Grade.cs
index 78096628..45feea52 100644
--- a/Tiobon.Core.Model/Models/Ghra/Ghra_Grade.cs
+++ b/Tiobon.Core.Model/Models/Ghra/Ghra_Grade.cs
@@ -24,7 +24,7 @@ namespace Tiobon.Core.Model.Models
///
/// Ghra_Grade
///
- [SugarTable("Ghra_Grade", "Ghra_Grade")]
+ [SugarTable("Ghra_Grade", "Ghra_Grade"), Entity(TableCnName = "BOM", TableName = "PsBOM")]
public class Ghra_Grade : BasePoco
{