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