コード例 #1
0
 public AuthRepository()
 {
     _db = new DataContext();
     _ctx = new AuthContext();
     _userManager = new UserManager<IdentityUser>(new UserStore<IdentityUser>(_ctx));
     _roleManager = new RoleManager<IdentityRole>(new RoleStore<IdentityRole>(_ctx));
 }
コード例 #2
0
 public PictureController()
 {
     _db = new DataContext();
 }
コード例 #3
0
 public SubscriptionController()
 {
     _db = new DataContext();
 }
コード例 #4
0
 public UserETMAdapter()
 {
     _ctx = new AuthContext();
     _userManager = new UserManager<IdentityUser>(new UserStore<IdentityUser>(_ctx));
     _db = new DataContext();
 }
コード例 #5
0
 public AccountController()
 {
     _repo = new AuthRepository();
     _db = new DataContext();
 }        
コード例 #6
0
 public VacationController()
 {
     _vacToModelAdapter = new VacationETMAdapter();
     _vacToEntityAdapter = new VacationMTEAdapter();
     _db = new DataContext();
 }