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