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