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