public static void SeedHostDb(ExemploMvcDbContext 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 DefaultTenantBuilder(ExemploMvcDbContext context) { _context = context; }
public InitialHostDbBuilder(ExemploMvcDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(ExemploMvcDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public HostRoleAndUserCreator(ExemploMvcDbContext context) { _context = context; }
public DefaultLanguagesCreator(ExemploMvcDbContext context) { _context = context; }
public DefaultEditionCreator(ExemploMvcDbContext context) { _context = context; }
public DefaultSettingsCreator(ExemploMvcDbContext context) { _context = context; }