Method AddToSetEach
AddToSetEach<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>)
Creates an add to set operator.
public UpdateDefinition<TDocument> AddToSetEach<TItem>(FieldDefinition<TDocument> field, IEnumerable<TItem> values)
Parameters
field
FieldDefinition<TDocument>The field.
values
IEnumerable<TItem>The values.
Returns
- UpdateDefinition<TDocument>
An add to set operator.
Type Parameters
TItem
The type of the item.
AddToSetEach<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)
Creates an add to set operator.
public UpdateDefinition<TDocument> AddToSetEach<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> field, IEnumerable<TItem> values)
Parameters
field
Expression<Func<TDocument, IEnumerable<TItem>>>The field.
values
IEnumerable<TItem>The values.
Returns
- UpdateDefinition<TDocument>
An add to set operator.
Type Parameters
TItem
The type of the item.