Sets the collection of related entities for a specific property

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

Syntax

C#
public void SetRelatedObjects<T>(
	string propertyName,
	ICollection<T> relatedObjects
)
where T : class
Visual Basic
Public Sub SetRelatedObjects(Of T As Class) ( 
	propertyName As String,
	relatedObjects As ICollection(Of T)
)
Visual C++
public:
generic<typename T>
where T : ref class
virtual void SetRelatedObjects(
	String^ propertyName, 
	ICollection<T>^ relatedObjects
) sealed
F#
abstract SetRelatedObjects : 
        propertyName : string * 
        relatedObjects : ICollection<'T> -> unit  when 'T : not struct
override SetRelatedObjects : 
        propertyName : string * 
        relatedObjects : ICollection<'T> -> unit  when 'T : not struct

Parameters

propertyName
Type: System..::..String
The name of the property to be updated
relatedObjects
Type: System.Collections.Generic..::..ICollection<(Of <(<'T>)>)>
The new collection of related entities

Type Parameters

T
The related entity type

Implements

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

See Also