expressappframework-devexpress-dot-expressapp-dot-iobjectspacefactory-dot-createobjectspace-x28-system-dot-type-system-dot-string-x29.md
Creates an object space for the specified business object type in a multi-tenant application.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
virtual IObjectSpace CreateObjectSpace(
Type objectType,
string tenantName
)
Overridable Function CreateObjectSpace(
objectType As Type,
tenantName As String
) As IObjectSpace
| Name | Type | Description |
|---|---|---|
| objectType | Type |
The type for which the method creates an object space.
| | tenantName | String |
The name of a tenant or null to create an object space for shared business objects.
|
| Type | Description |
|---|---|
| IObjectSpace |
An object space for the specified type.
|
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:
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.
See Also
Shared Data Support in a Multi-Tenant Application
Access Object Space, Security System, and Caption Helper in the ASP.NET Core Environment
Access Object Space, Security System, and Caption Helper in Custom Endpoint Methods
Ways to Access an Object Space (the Database Context for CRUD Operations)