Back to Devexpress

NestedUnitOfWork.GetParentObject<T>(T) Method

xpo-devexpress-dot-xpo-dot-nestedunitofwork-dot-getparentobject-1-x28-0-x29.md

latest1.4 KB
Original Source

NestedUnitOfWork.GetParentObject<T>(T) Method

Returns the object in the parent session of the type designated by the specified generic type parameter, 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 T GetParentObject<T>(
    T obj
)
vb
Public Function GetParentObject(Of T)(
    obj As T
) As T

Parameters

NameTypeDescription
objT

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

|

Type Parameters

Name
T

Returns

TypeDescription
T

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

|

See Also

GetNestedObject<T>(T)

NestedUnitOfWork Class

NestedUnitOfWork Members

DevExpress.Xpo Namespace