Session.CreateObjectTypeRecords() 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.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateObjectTypeRecords() 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.