コード例 #1
0
 public QuizController(PlatformDbContext ctx, ApplicationDbContext appDb, UserManager <AuthenticatedUser> userManager, RoleManager <IdentityRole> roleManager)
 {
     _userManager = userManager;
     _ctx         = ctx;
     _appDb       = appDb;
     _roleManager = roleManager;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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();
        }
コード例 #4
0
 public TenantRoleAndUserBuilder(PlatformDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
コード例 #5
0
 public DefaultTenantCreator(PlatformDbContext context)
 {
     _context = context;
 }
コード例 #6
0
 public DefaultEditionsCreator(PlatformDbContext context)
 {
     _context = context;
 }
コード例 #7
0
 public HostRoleAndUserCreator(PlatformDbContext context)
 {
     _context = context;
 }
コード例 #8
0
 public InitialHostDbBuilder(PlatformDbContext context)
 {
     _context = context;
 }
コード例 #9
0
 public UserRoleService(PlatformDbContext dbcontext, IMemoryCache cache)
 {
     this.cache     = cache;
     this.dbcontext = dbcontext;
 }
コード例 #10
0
 public DefaultLanguagesCreator(PlatformDbContext context)
 {
     _context = context;
 }
コード例 #11
0
 public DefaultSettingsCreator(PlatformDbContext context)
 {
     _context = context;
 }
コード例 #12
0
 public TestDataBuilder(PlatformDbContext context)
 {
     _context = context;
 }
コード例 #13
0
 public DefaultTenantBuilder(PlatformDbContext context)
 {
     _context = context;
 }