public DatabaseInitializer(
     ApplicationDbContext context,
     PersistedGrantDbContext persistedGrantContext,
     ConfigurationDbContext configurationContext,
     TenantStoreDbContext tenantStoreDbContext,
     UserManager <ApplicationUser> userManager,
     RoleManager <IdentityRole <Guid> > roleManager,
     ApplicationPermissions applicationPermissions,
     ILogger <DatabaseInitializer> logger)
 {
     _persistedGrantContext = persistedGrantContext;
     _configurationContext  = configurationContext;
     _context = context;
     _tenantStoreDbContext   = tenantStoreDbContext;
     _userManager            = userManager;
     _roleManager            = roleManager;
     _applicationPermissions = applicationPermissions;
     _logger = logger;
 }
Пример #2
0
 public DatabaseInitializer(
     TenantStoreDbContext tenantStoreDbContext,
     LocalizationDbContext localizationDbContext,
     ApplicationDbContext context,
     PersistedGrantDbContext persistedGrantContext,
     ConfigurationDbContext configurationContext,
     UserManager <ApplicationUser> userManager,
     RoleManager <ApplicationRole> roleManager,
     EntityPermissions entityPermissions,
     ILocalizationProvider localizationProvider,
     ILogger <DatabaseInitializer> logger)
 {
     _tenantStoreDbContext  = tenantStoreDbContext;
     _localizationDbContext = localizationDbContext;
     _persistedGrantContext = persistedGrantContext;
     _configurationContext  = configurationContext;
     _context              = context;
     _userManager          = userManager;
     _roleManager          = roleManager;
     _entityPermissions    = entityPermissions;
     _localizationProvider = localizationProvider;
     _logger = logger;
 }