完成模块分配按钮

This commit is contained in:
yubaolee
2015-12-02 16:28:01 +08:00
parent 87712e2b49
commit 000df6d1d3
13 changed files with 228 additions and 19 deletions

View File

@@ -18,6 +18,8 @@ using Autofac.Integration.Mvc;
using OpenAuth.App;
using System.Reflection;
using System.Web.Mvc;
using OpenAuth.Domain.Interface;
using OpenAuth.Repository;
namespace OpenAuth.Mvc
{
@@ -27,12 +29,20 @@ namespace OpenAuth.Mvc
{
var builder = new ContainerBuilder();
//<2F><><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>
builder.RegisterGeneric(typeof(BaseRepository<>)).As(typeof(IRepository<>));
//Ӧ<>ò<EFBFBD>ע<EFBFBD><D7A2>
builder.RegisterModule(new ConfigurationSettingsReader("autofac"));
builder.RegisterType<LoginApp>();
builder.RegisterType<OrgManagerApp>();
builder.RegisterType<UserManagerApp>();
builder.RegisterType<RoleManagerApp>();
builder.RegisterType<ModuleManagerApp>();
builder.RegisterType<ModuleElementManagerApp>();
// Register your MVC controllers.
builder.RegisterControllers(typeof(MvcApplication).Assembly);