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(Type[]) Method

Stores valid persistent types for the specified class types.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public void CreateObjectTypeRecords(
    params Type[] types
)
Public Sub CreateObjectTypeRecords(
    ParamArray types As Type()
)
public void CreateObjectTypeRecords(
    params Type[] types
)
Public Sub CreateObjectTypeRecords(
    ParamArray types As Type()
)

Parameters

Name Type Description
types Type[]

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

Parameters

Name Type Description
types Type[]

An array of 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 and pass class types 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.

See Also