IMultiTenancyApplicationBuilder.WithHostDbContext(Action<IServiceProvider, DbContextOptionsBuilder>, Boolean, Boolean, Boolean) Method
Configures DbContext
used by the application to access the host database containing tenant settings.
Namespace: DevExpress.ExpressApp.MultiTenancy.EFCore
Assembly: DevExpress.ExpressApp.MultiTenancy.EFCore.v25.1.dll
NuGet Package: DevExpress.ExpressApp.MultiTenancy.EFCore
Declaration
IMultiTenancyApplicationBuilder WithHostDbContext(
Action<IServiceProvider, DbContextOptionsBuilder> configureServiceDbContext,
bool isMiddleTier = false,
bool enableOptimisticLock = true,
bool enableDeferredDeletion = true
)
Parameters
Name | Type | Description |
---|---|---|
configureServiceDbContext | Action<IServiceProvider, DbContextOptionsBuilder> | A delegate that configures |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
isMiddleTier | Boolean | False |
|
enableOptimisticLock | Boolean | True |
|
enableDeferredDeletion | Boolean | True |
|
Returns
Type | Description |
---|---|
IMultiTenancyApplicationBuilder | The application builder that processed the action. |
See Also