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