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