Method PushEach
PushEach<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>, int?, int?, SortDefinition<TItem>)
Creates a push operator.
public UpdateDefinition<TDocument> PushEach<TItem>(FieldDefinition<TDocument> field, IEnumerable<TItem> values, int? slice = null, int? position = null, SortDefinition<TItem> sort = null)
Parameters
field
FieldDefinition<TDocument>The field.
values
IEnumerable<TItem>The values.
slice
int?The slice.
position
int?The position.
sort
SortDefinition<TItem>The sort.
Returns
- UpdateDefinition<TDocument>
A push operator.
Type Parameters
TItem
The type of the item.
PushEach<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>, int?, int?, SortDefinition<TItem>)
Creates a push operator.
public UpdateDefinition<TDocument> PushEach<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> field, IEnumerable<TItem> values, int? slice = null, int? position = null, SortDefinition<TItem> sort = null)
Parameters
field
Expression<Func<TDocument, IEnumerable<TItem>>>The field.
values
IEnumerable<TItem>The values.
slice
int?The slice.
position
int?The position.
sort
SortDefinition<TItem>The sort.
Returns
- UpdateDefinition<TDocument>
A push operator.
Type Parameters
TItem
The type of the item.