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