1 完成用户部门权限分配处理,可以为用户分配可见部门,如果没有任何可见部门,则只能查看自己有关的数据;

2 完善进出库实例;
3 添加CodeSmith生成EF DbContext Entity Mapping;
This commit is contained in:
yubaolee
2016-01-07 11:47:43 +08:00
parent c2099cd337
commit f0b42e83d4
62 changed files with 5687 additions and 1592 deletions

View File

@@ -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)