1
This commit is contained in:
7
iMES.Entity/AttributeManager/DBType.cs
Normal file
7
iMES.Entity/AttributeManager/DBType.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
//namespace iMES.Entity.AttributeManager
|
||||
//{
|
||||
// public class DBType
|
||||
// {
|
||||
|
||||
// }
|
||||
//}
|
||||
38
iMES.Entity/AttributeManager/EntityAttribute.cs
Normal file
38
iMES.Entity/AttributeManager/EntityAttribute.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace iMES.Entity
|
||||
{
|
||||
public class EntityAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 真实表名(数据库表名,若没有填写默认实体为表名)
|
||||
/// </summary>
|
||||
public string TableName { get; set; }
|
||||
/// <summary>
|
||||
/// 表中文名
|
||||
/// </summary>
|
||||
public string TableCnName { get; set; }
|
||||
/// <summary>
|
||||
/// 子表
|
||||
/// </summary>
|
||||
public Type[] DetailTable { get; set; }
|
||||
/// <summary>
|
||||
/// 子表中文名
|
||||
/// </summary>
|
||||
public string DetailTableCnName { get; set; }
|
||||
/// <summary>
|
||||
/// 数据库
|
||||
/// </summary>
|
||||
public string DBServer { get; set; }
|
||||
|
||||
//是否开启用户数据权限,true=用户只能操作自己(及下级角色)创建的数据,如:查询、删除、修改等操作
|
||||
public bool CurrentUserPermission { get; set; }
|
||||
|
||||
public Type ApiInput { get; set; }
|
||||
public Type ApiOutput { get; set; }
|
||||
}
|
||||
}
|
||||
12
iMES.Entity/AttributeManager/PermissionTableAttribute.cs
Normal file
12
iMES.Entity/AttributeManager/PermissionTableAttribute.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace iMES.Entity.AttributeManager
|
||||
{
|
||||
public class PermissionTableAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 需要控制权限的表名与Sys_Menu表的表名必须一致
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user