Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    IMultiTenancyApplicationBuilder.WithHostDbContext Method

    Name Parameters Description
    WithHostDbContext(Action<IServiceProvider, DbContextOptionsBuilder>, Boolean, Boolean, Boolean) configureServiceDbContext, isMiddleTier, enableOptimisticLock, enableDeferredDeletion Configures DbContext used by the application to access the host database containing tenant settings.
    WithHostDbContext<TServiceDbContext>(Action<IServiceProvider, DbContextOptionsBuilder>, Boolean) configureServiceDbContext, isMiddleTier Configures DbContext used by the application to access the host database containing tenant settings.