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