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