Skip to main content
.NET 8.0+

NestedUnitOfWork.GetParentObject(Object) Method

Returns the object in the parent Session or UnitOfWork whose ‘copy’ in the current unit of work is specified.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

public object GetParentObject(
    object obj
)

Parameters

Name Type Description
obj Object

The object in the current unit of work which is the ‘copy’ of the returned object.

Returns

Type Description
Object

The parent object whose ‘copy’ in the current unit of work is specified.

Remarks

The method’s return value and the specified object represent the same persistent object.

See Also