public UserManagementController(UserManager <ApplicationUser> userManager, RoleManager <CustomRole> roleManager , CustomIdentityDbContext dbContext) { _userManager = userManager; _roleManager = roleManager; _dbContext = dbContext; }
public void EnsureIdentityDb(string connectionString) { DbContextOptionsBuilder <CustomIdentityDbContext> optionsBuilder = new DbContextOptionsBuilder <CustomIdentityDbContext>(); optionsBuilder.UseSqlServer(connectionString); using (var dbContext = new CustomIdentityDbContext(optionsBuilder.Options)) { dbContext.Database.EnsureCreated(); } }
public HomeController(ILogger <HomeController> logger, CustomIdentityDbContext db) { _logger = logger; _db = db; }
public AuthController(CustomIdentityDbContext context) { _context = context; }
public AccountManager(CustomIdentityDbContext context, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager) { _context = context; _userManager = userManager; _roleManager = roleManager; }
public UnitOfWork(CustomIdentityDbContext identity) { _identity = identity; _userStore = new CustUserStore(_identity); }