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