The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.CreateObjectTypeRecords(Boolean) Method

Stores valid persistent types for all the types which are defined within the assemblies that have been loaded in the current application domain.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public void CreateObjectTypeRecords(
    bool createOnlyNecessary
)
Public Sub CreateObjectTypeRecords(
    createOnlyNecessary As Boolean
)
public void CreateObjectTypeRecords(
    bool createOnlyNecessary
)
Public Sub CreateObjectTypeRecords(
    createOnlyNecessary As Boolean
)

Parameters

Name Type Description
createOnlyNecessary Boolean

true, to create object type records only for types that require this to function properly, such as types from inheritance chains, or types utilizing deferred deletion; false, to create object type records for all persistent types.

Parameters

Name Type Description
createOnlyNecessary Boolean

true, to create object type records only for types that require this to function properly, such as types from inheritance chains, or types utilizing deferred deletion; false, to create object type records for all persistent types.

Remarks

For thread-safe data access layers (see ThreadSafeDataLayer) to function correctly, it's necessary to provide complete metadata information on the persistent objects in a data store before performing any operations with persistent objects. Call the CreateObjectTypeRecords method to store valid persistent types for all the class types which are defined within the assemblies that have been loaded in the current application domain. This creates all the necessary records within a special table called XPObjectType which is used to support object polymorphism.

See Also