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