Skip to main content
.NET 8.0+

NestedUnitOfWork.GetNestedObject(Object) Method

Returns the object in the current unit of work which is the ‘copy’ of the specified object that is owned by the parent Session or UnitOfWork.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

#Declaration

public object GetNestedObject(
    object obj
)

#Parameters

Name Type Description
obj Object

The parent object whose ‘copy’ in the nested unit of work is returned.

#Returns

Type Description
Object

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

#Remarks

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

See Also