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