Invoked by the generated class to retrieve the value of a property whose type is another entity

Namespace: BrightstarDB.EntityFramework
Assembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)

Syntax

C#
T GetRelatedObject<T>(
	string propertyName
)
where T : class
Visual Basic
Function GetRelatedObject(Of T As Class) ( 
	propertyName As String
) As T
Visual C++
generic<typename T>
where T : ref class
T GetRelatedObject(
	String^ propertyName
)
F#
abstract GetRelatedObject : 
        propertyName : string -> 'T  when 'T : not struct

Parameters

propertyName
Type: System..::..String
The name of the property that represents the relationship

Type Parameters

T
The type of the related entity

Return Value

Type: T
The related entity or null if there is no related entity

See Also