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