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