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