Retrieve the parent entity of this entity.

Namespace: Cartella.Interfaces
Assembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
[ObsoleteAttribute]
TInterface GetParent<TInterface, TClass>()
where TInterface : IEntity
where TClass : class, new(), TInterface
Visual Basic
<ObsoleteAttribute> _
Function GetParent(Of TInterface As IEntity, TClass As {Class, New, TInterface}) As TInterface
Visual C++
[ObsoleteAttribute]
generic<typename TInterface, typename TClass>
where TInterface : IEntity
where TClass : ref class, gcnew(), TInterface
TInterface GetParent()

Type Parameters

TInterface
Return type of parent as Interface
TClass
Class type of parent for object creation, must implements TInterface, cannot be abstract

Field Value

TInterface

Return Value

Parent entity of this entity, null if entity is orphan

See Also