Skip to main content
All docs
V25.2
  • IMultiTenancyApplicationBuilder Methods

    Declares methods for configuring a multi-tenant application using the EF Core ORM.
    Name Description
    WithCustomTenantType<TTenantType>() Specifies the persistent type used to store tenant information.
    WithHostDbContext(Action<IServiceProvider, DbContextOptionsBuilder>, Boolean, Boolean, Boolean) Configures DbContext used by the application to access the host database containing tenant settings.
    WithHostDbContext<TServiceDbContext>(Action<IServiceProvider, DbContextOptionsBuilder>, Boolean) Configures DbContext used by the application to access the host database containing tenant settings.
    WithMultiTenancyModelDifferenceStore(Action<ModelDifferencesOptions>) Configures application model settings set to be used for host user interface and tenant user interfaces.
    WithMultiTenancyModelDifferenceStore<TTenantModelDifferenceStore>(Action<ModelDifferencesOptions>) Configures application model settings set to be used for host user interface and tenant user interfaces.
    WithSharedBusinessObjects(Type[]) Registers the specified host business object types as shared data accessible to tenants.
    WithTenantResolver<TTenantResolver>() Enables automatic tenant detection based on user login using the specified tenant resolver type.
    See Also