IObjectSpaceFactory.CreateObjectSpace(Type, String) Method
Creates an object space for the specified business object type in a multi-tenant application.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v25.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Parameters
Name | Type | Description |
---|---|---|
objectType | Type | The type for which the method creates an object space. |
tenantName | String | The name of a tenant or |
Returns
Type | Description |
---|---|
IObjectSpace | An object space for the specified type. |
Remarks
In multi-tenant applications, the host database can maintain shared business objects. Tenants can read this data, but cannot modify it. Host UI administrators have complete CRUD control over host and tenant data.
Call the CreateObjectSpace
method to create an object space to access the following data:
- Tenant business objects from the host account
- Host-shared business objects from a tenant account
Refer to the following help topic for more information: Shared Data Support in a Multi-Tenant Application.
Tip
In a tenant account, you can use CreateObjectSpace
methods without the tenantName
parameter to get the same result.