v1.1 实现用户分级授权,得到权限的用户只能在自己的权限范围内再进一步操作

This commit is contained in:
yubaolee
2016-05-27 00:58:36 +08:00
parent ef6a274ac6
commit fbdd6163a2
10 changed files with 174 additions and 131 deletions

View File

@@ -30,11 +30,11 @@ namespace OpenAuth.Mvc
{
var builder = new ContainerBuilder();
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD>
//注册数据库基础操作和工作单元
builder.RegisterGeneric(typeof(BaseRepository<>)).As(typeof(IRepository<>));
builder.RegisterType(typeof (UnitWork)).As(typeof (IUnitWork));
//Ӧ<EFBFBD>ò<EFBFBD>ע<EFBFBD><EFBFBD>
//注册WebConfig中的配置
builder.RegisterModule(new ConfigurationSettingsReader("autofac"));
//注册app层