Back to Devexpress

NestedUnitOfWork.GetParentObject(Object) Method

xpo-devexpress-dot-xpo-dot-nestedunitofwork-dot-getparentobject-x28-system-dot-object-x29.md

latest1.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public object GetParentObject(
    object obj
)
vb
Public Function GetParentObject(
    obj As Object
) As Object

Parameters

NameTypeDescription
objObject

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

|

Returns

TypeDescription
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

GetNestedObject(Object)

NestedUnitOfWork Class

NestedUnitOfWork Members

DevExpress.Xpo Namespace