Method Nin
Nin<TField>(FieldDefinition<TDocument, TField>, IEnumerable<TField>)
Creates a not in filter.
public FilterDefinition<TDocument> Nin<TField>(FieldDefinition<TDocument, TField> field, IEnumerable<TField> values)
Parameters
field
FieldDefinition<TDocument, TField>The field.
values
IEnumerable<TField>The values.
Returns
- FilterDefinition<TDocument>
A not in filter.
Type Parameters
TField
The type of the field.
Nin<TField>(Expression<Func<TDocument, TField>>, IEnumerable<TField>)
Creates a not in filter.
public FilterDefinition<TDocument> Nin<TField>(Expression<Func<TDocument, TField>> field, IEnumerable<TField> values)
Parameters
field
Expression<Func<TDocument, TField>>The field.
values
IEnumerable<TField>The values.
Returns
- FilterDefinition<TDocument>
A not in filter.
Type Parameters
TField
The type of the field.