Session.CreateObjectTypeRecords(XPClassInfo[]) Method
Stores valid persistent types for the specified persistent class metadata information.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public void CreateObjectTypeRecords(
params XPClassInfo[] types
)
#Parameters
Name | Type | Description |
---|---|---|
types | XPClass |
An array of the XPClass |
#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 and pass persistent class metadata information as the types parameter to store valid persistent types for the corresponding persistent objects. This creates all the necessary records within a special table called XPObjectType which is used to support object polymorphism.