mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
v1.1 实现用户分级授权,得到权限的用户只能在自己的权限范围内再进一步操作
This commit is contained in:
@@ -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层
|
||||
|
Reference in New Issue
Block a user