IMultiTenancyApplicationBuilder.WithHostDbContext<TServiceDbContext>(Action<IServiceProvider, DbContextOptionsBuilder>, 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<TServiceDbContext>(
Action<IServiceProvider, DbContextOptionsBuilder> configureServiceDbContext,
bool isMiddleTier = false
)
where TServiceDbContext : DbContext
Parameters
Name | Type | Description |
---|---|---|
configureServiceDbContext | Action<IServiceProvider, DbContextOptionsBuilder> | A delegate that configures |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
isMiddleTier | Boolean | False |
|
Type Parameters
Name | Description |
---|---|
TServiceDbContext | The type of |
Returns
Type | Description |
---|---|
IMultiTenancyApplicationBuilder | The application builder that processed the action. |
See Also