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