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