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