Method AddToSetEach
AddToSetEach(string, BsonArray)
Adds a list of values to a named array element adding each value only if it not already in the array (see $addToSet and $each).
public static UpdateBuilder AddToSetEach(string name, BsonArray values)
Parameters
Returns
- UpdateBuilder
The builder (so method calls can be chained).
AddToSetEach(string, IEnumerable<BsonValue>)
Adds a list of values to a named array element adding each value only if it not already in the array (see $addToSet and $each).
public static UpdateBuilder AddToSetEach(string name, IEnumerable<BsonValue> values)
Parameters
name
stringThe name of the array element.
values
IEnumerable<BsonValue>The values to add to the set.
Returns
- UpdateBuilder
The builder (so method calls can be chained).
AddToSetEach(string, params BsonValue[])
Adds a list of values to a named array element adding each value only if it not already in the array (see $addToSet and $each).
public static UpdateBuilder AddToSetEach(string name, params BsonValue[] values)
Parameters
Returns
- UpdateBuilder
The builder (so method calls can be chained).