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