XPClassInfo.CreateObject(Session) Method

Instantiates an existing persistent object upon loading it from the database.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v20.2.dll


public virtual object CreateObject(
    Session session
Public Overridable Function CreateObject(
    session As Session
) As Object


Name Type Description
session Session

A Session object which represents the session. This property is assigned to the object's PersistentBase.Session property.


Type Description

An object which is the instantiated persistent object.


The CreateObject method is used internally by XPO to instantiate persistent objects existing in the database. Do not use this method to create new persistent objects. Use the XPClassInfo.CreateNewObject method instead.

See Also