Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Session.CreateObjectTypeRecords(Assembly[]) Method

Stores valid persistent types for all the types which are defined within the specified assemblies.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public void CreateObjectTypeRecords(
    params Assembly[] assemblies
)

Parameters

Name Type Description
assemblies Assembly[]

An array of assemblies which contain the class types for which the persistent types will be stored in the metadata information.

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 are passed as the assemblies parameter. This creates all the necessary records within a special table called XPObjectType which is used to support object polymorphism.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateObjectTypeRecords(Assembly[]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also