Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    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

    virtual IObjectSpace CreateObjectSpace(
        Type objectType,
        string tenantName
    )

    Parameters

    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.

    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.

    See Also