IClrCollectionAccessor.AddStandalone(Object, Object) Method

Definition

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

C#
public bool AddStandalone (object collection, object value);

Parameters

collection
Object

The collection.

value
Object

The value to add.

Returns

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

Applies to

Product Versions
Entity Framework Core 7.0, 8.0, 9.0