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