Method AnyNin
AnyNin<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>)
Creates a not in filter for an array field.
public FilterDefinition<TDocument> AnyNin<TItem>(FieldDefinition<TDocument> field, IEnumerable<TItem> values)
Parameters
field
FieldDefinition<TDocument>The field.
values
IEnumerable<TItem>The values.
Returns
- FilterDefinition<TDocument>
A not in filter.
Type Parameters
TItem
The type of the item.
AnyNin<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)
Creates a not in filter for an array field.
public FilterDefinition<TDocument> AnyNin<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
- FilterDefinition<TDocument>
A not in filter.
Type Parameters
TItem
The type of the item.