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