コード例 #1
0
        public UserManagerBso(ApplicationUserManager userManager)
        {
            var roleManagerDbContext = RoleManagerDbContext.Create();

            this.UserManager = userManager;
            this.RoleManager = new RoleManager <ApplicationRole>(new RoleStore <ApplicationRole>(roleManagerDbContext));
            this.UnitOfWork  = new UnitOfWork(roleManagerDbContext);
        }
コード例 #2
0
 public RoleManagerBso()
 {
     this.UnitOfWork = new UnitOfWork(RoleManagerDbContext.Create());
 }