Method Eq
Eq<TField>(FieldDefinition<TDocument, TField>, TField)
Creates an equality filter.
public FilterDefinition<TDocument> Eq<TField>(FieldDefinition<TDocument, TField> field, TField value)
Parameters
field
FieldDefinition<TDocument, TField>The field.
value
TFieldThe value.
Returns
- FilterDefinition<TDocument>
An equality filter.
Type Parameters
TField
The type of the field.
Eq<TField>(Expression<Func<TDocument, TField>>, TField)
Creates an equality filter.
public FilterDefinition<TDocument> Eq<TField>(Expression<Func<TDocument, TField>> field, TField value)
Parameters
field
Expression<Func<TDocument, TField>>The field.
value
TFieldThe value.
Returns
- FilterDefinition<TDocument>
An equality filter.
Type Parameters
TField
The type of the field.