Back to Devexpress

IMultiTenancyApplicationBuilder.WithHostDbContext Method

expressappframework-devexpress-dot-expressapp-dot-multitenancy-dot-efcore-dot-imultitenancyapplicationbuilder-dot-withhostdbcontext.md

latest1.0 KB
Original Source

IMultiTenancyApplicationBuilder.WithHostDbContext Method

NameParametersDescription
WithHostDbContext(Action<IServiceProvider, DbContextOptionsBuilder>, Boolean, Boolean, Boolean)configureServiceDbContext, isMiddleTier, enableOptimisticLock, enableDeferredDeletionConfigures DbContext used by the application to access the host database containing tenant settings.
WithHostDbContext<TServiceDbContext>(Action<IServiceProvider, DbContextOptionsBuilder>, Boolean)configureServiceDbContext, isMiddleTierConfigures DbContext used by the application to access the host database containing tenant settings.