Back to Devexpress

DevExpress.ExpressApp.MultiTenancy Namespace

expressappframework-devexpress-dot-expressapp-ada4f12d.md

latest2.4 KB
Original Source

DevExpress.ExpressApp.MultiTenancy Namespace

Contains API specific to the Multi-Tenancy functionality.

Assemblies : DevExpress.ExpressApp.MultiTenancy.v25.2.dll, DevExpress.ExpressApp.v25.2.dll

NuGet Packages : DevExpress.ExpressApp.MultiTenancy, DevExpress.ExpressApp

Classes

NameDescription
TenantByEmailResolverDetermines the tenant name based on user login according to the following pattern: {User}@{Tenant}. For instance, if user login is ‘ [email protected] ‘, the user name is ‘ John ‘ and the tenant name is ‘ company.com ‘.
TenantByUserNameResolverDetermines the tenant name based on user login name according to the specified pattern. The pattern should contain ‘ {User} ‘ and ‘ {Tenant} ‘ parts. For instance, if the pattern is ‘ {Tenant}//{User} ‘ and login is ‘ company/John ‘, the user name is ‘ John ‘ and the tenant name is ‘ company ‘.
TenantNotFoundExceptionAn exception is thrown in a multi-tenant application if a tenant with the specified name or ID does not exist.

Interfaces

NameDescription
IConnectionStringProviderDeclares a method that allows you to get the connection string for the current tenant’s database.
ITenantModelDifferenceStoreDeclares the Application Model Differences store for tenants in multi-tenant applications.
ITenantProviderDeclares the API that allows you to specify the ID of the current tenant, and get the name of the current tenant in a multi-tenant application.
ITenantResolverDeclares methods that return the ID of a tenant based on a user login information in a multi-tenant application.