Method Ne
Ne<TField>(FieldDefinition<TDocument, TField>, TField)
Creates a not equal filter.
public FilterDefinition<TDocument> Ne<TField>(FieldDefinition<TDocument, TField> field, TField value)
Parameters
field
FieldDefinition<TDocument, TField>The field.
value
TFieldThe value.
Returns
- FilterDefinition<TDocument>
A not equal filter.
Type Parameters
TField
The type of the field.
Ne<TField>(Expression<Func<TDocument, TField>>, TField)
Creates a not equal filter.
public FilterDefinition<TDocument> Ne<TField>(Expression<Func<TDocument, TField>> field, TField value)
Parameters
field
Expression<Func<TDocument, TField>>The field.
value
TFieldThe value.
Returns
- FilterDefinition<TDocument>
A not equal filter.
Type Parameters
TField
The type of the field.