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