public static void SeedHostDb(KworkPracticeTaskDbContext 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(KworkPracticeTaskDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(KworkPracticeTaskDbContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public HostRoleAndUserCreator(KworkPracticeTaskDbContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public InitialHostDbBuilder(KworkPracticeTaskDbContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public DefaultLanguagesCreator(KworkPracticeTaskDbContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public DefaultSettingsCreator(KworkPracticeTaskDbContext context)
 {
     _context = context;
 }