Invoked by the generated class to change 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#
public void SetRelatedObject<T>(
	string propertyName,
	T value
)
where T : class
Visual Basic
Public Sub SetRelatedObject(Of T As Class) ( 
	propertyName As String,
	value As T
)
Visual C++
public:
generic<typename T>
where T : ref class
virtual void SetRelatedObject(
	String^ propertyName, 
	T value
) sealed
F#
abstract SetRelatedObject : 
        propertyName : string * 
        value : 'T -> unit  when 'T : not struct
override SetRelatedObject : 
        propertyName : string * 
        value : 'T -> unit  when 'T : not struct

Parameters

propertyName
Type: System..::..String
The name of the property that represents the relationship
value
Type: T
The new related entity

Type Parameters

T
The type of the related entity

Implements

IEntityObject..::..SetRelatedObject<(Of <<'(T>)>>)(String, T)

Exceptions

ExceptionCondition
BrightstarDB.EntityFramework..::..EntityFrameworkExceptionThrown if this object is not currently attached to a context

See Also