mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
1 完成用户部门权限分配处理,可以为用户分配可见部门,如果没有任何可见部门,则只能查看自己有关的数据;
2 完善进出库实例; 3 添加CodeSmith生成EF DbContext Entity Mapping;
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%--
|
||||
<%--
|
||||
Name: 数据访问
|
||||
Author: yubaolee
|
||||
Description:
|
||||
@@ -20,7 +20,7 @@ namespace OpenAuth.Repository
|
||||
|
||||
public IEnumerable<<%=ModuleName%>> Load<%=ModuleName%>s(int pageindex, int pagesize)
|
||||
{
|
||||
return Context.Categories.OrderBy(u => u.Id).Skip((pageindex - 1) * pagesize).Take(pagesize);
|
||||
return Context.<%=ModuleName%>s.OrderBy(u => u.Id).Skip((pageindex - 1) * pagesize).Take(pagesize);
|
||||
}
|
||||
|
||||
public IEnumerable<<%=ModuleName%>> LoadInOrgs(params int[] orgId)
|
||||
|
Reference in New Issue
Block a user