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