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