public QuizController(PlatformDbContext ctx, ApplicationDbContext appDb, UserManager <AuthenticatedUser> userManager, RoleManager <IdentityRole> roleManager) { _userManager = userManager; _ctx = ctx; _appDb = appDb; _roleManager = roleManager; }
public UserProfileController(PlatformDbContext ctx, ApplicationDbContext appDb, UserManager <AuthenticatedUser> userManager, RoleManager <IdentityRole> roleManager, SignInManager <AuthenticatedUser> signInManager) { _userManager = userManager; _ctx = ctx; _appDb = appDb; _roleManager = roleManager; _signInManager = signInManager; }
public static void SeedHostDb(PlatformDbContext context) { context.SuppressAutoSetTenantId = true; // Host seed new InitialHostDbBuilder(context).Create(); // Default tenant seed (in host database). new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); }
public TenantRoleAndUserBuilder(PlatformDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultTenantCreator(PlatformDbContext context) { _context = context; }
public DefaultEditionsCreator(PlatformDbContext context) { _context = context; }
public HostRoleAndUserCreator(PlatformDbContext context) { _context = context; }
public InitialHostDbBuilder(PlatformDbContext context) { _context = context; }
public UserRoleService(PlatformDbContext dbcontext, IMemoryCache cache) { this.cache = cache; this.dbcontext = dbcontext; }
public DefaultLanguagesCreator(PlatformDbContext context) { _context = context; }
public DefaultSettingsCreator(PlatformDbContext context) { _context = context; }
public TestDataBuilder(PlatformDbContext context) { _context = context; }
public DefaultTenantBuilder(PlatformDbContext context) { _context = context; }