XPClassInfo.CreateObject(Session) Method
In This Article
Instantiates an existing persistent object upon loading it from the database.
Namespace: DevExpress.Xpo.Metadata
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
session | Session | A Session object which represents the session. This property is assigned to the object’s Persistent |
#Returns
Type | Description |
---|---|
Object | An object which is the instantiated persistent object. |
#Remarks
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