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