Method PullFilter
PullFilter<TDocument, TItem>(UpdateDefinition<TDocument>, FieldDefinition<TDocument>, FilterDefinition<TItem>)
Combines an existing update with a pull operator.
public static UpdateDefinition<TDocument> PullFilter<TDocument, TItem>(this UpdateDefinition<TDocument> update, FieldDefinition<TDocument> field, FilterDefinition<TItem> filter)
Parameters
update
UpdateDefinition<TDocument>The update.
field
FieldDefinition<TDocument>The field.
filter
FilterDefinition<TItem>The filter.
Returns
- UpdateDefinition<TDocument>
A combined update.
Type Parameters
TDocument
The type of the document.
TItem
The type of the item.
PullFilter<TDocument, TItem>(UpdateDefinition<TDocument>, Expression<Func<TDocument, IEnumerable<TItem>>>, FilterDefinition<TItem>)
Combines an existing update with a pull operator.
public static UpdateDefinition<TDocument> PullFilter<TDocument, TItem>(this UpdateDefinition<TDocument> update, Expression<Func<TDocument, IEnumerable<TItem>>> field, FilterDefinition<TItem> filter)
Parameters
update
UpdateDefinition<TDocument>The update.
field
Expression<Func<TDocument, IEnumerable<TItem>>>The field.
filter
FilterDefinition<TItem>The filter.
Returns
- UpdateDefinition<TDocument>
A combined update.
Type Parameters
TDocument
The type of the document.
TItem
The type of the item.
PullFilter<TDocument, TItem>(UpdateDefinition<TDocument>, Expression<Func<TDocument, IEnumerable<TItem>>>, Expression<Func<TItem, bool>>)
Combines an existing update with a pull operator.
public static UpdateDefinition<TDocument> PullFilter<TDocument, TItem>(this UpdateDefinition<TDocument> update, Expression<Func<TDocument, IEnumerable<TItem>>> field, Expression<Func<TItem, bool>> filter)
Parameters
update
UpdateDefinition<TDocument>The update.
field
Expression<Func<TDocument, IEnumerable<TItem>>>The field.
filter
Expression<Func<TItem, bool>>The filter.
Returns
- UpdateDefinition<TDocument>
A combined update.
Type Parameters
TDocument
The type of the document.
TItem
The type of the item.