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