Share via


IClrCollectionAccessor.Add(Object, Object, Boolean) Method

Definition

Adds a value to the navigation property collection, unless it is already contained in the collection.

public bool Add (object entity, object value, bool forMaterialization);
abstract member Add : obj * obj * bool -> bool
Public Function Add (entity As Object, value As Object, forMaterialization As Boolean) As Boolean

Parameters

entity
Object

The entity instance.

value
Object

The value to add.

forMaterialization
Boolean

If true, then the value is being added as part of query materialization.

Returns

true if a value was added; false if it was already in the collection.

Applies to