Esempio n. 1
0
        public static void SeedHostDb(WXProjectDbContext 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();
        }
Esempio n. 2
0
 public HostRoleAndUserCreator(WXProjectDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(WXProjectDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(WXProjectDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Esempio n. 5
0
 public DefaultTenantBuilder(WXProjectDbContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public DefaultEditionCreator(WXProjectDbContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public DefaultSettingsCreator(WXProjectDbContext context)
 {
     _context = context;
 }
Esempio n. 8
0
 public InitialHostDbBuilder(WXProjectDbContext context)
 {
     _context = context;
 }