public static void SeedHostDb(AspboilerTrainingDbContext 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 DefaultEditionCreator(AspboilerTrainingDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(AspboilerTrainingDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(AspboilerTrainingDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(AspboilerTrainingDbContext context)
 {
     _context = context;
 }
Exemple #6
0
 public TenantRoleAndUserBuilder(AspboilerTrainingDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public InitialHostDbBuilder(AspboilerTrainingDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(AspboilerTrainingDbContext context)
 {
     _context = context;
 }