Method In
In<TField>(FieldDefinition<TDocument, TField>, IEnumerable<TField>)
Creates an in filter.
public FilterDefinition<TDocument> In<TField>(FieldDefinition<TDocument, TField> field, IEnumerable<TField> values)
Parameters
field
FieldDefinition<TDocument, TField>The field.
values
IEnumerable<TField>The values.
Returns
- FilterDefinition<TDocument>
An in filter.
Type Parameters
TField
The type of the field.
In<TField>(Expression<Func<TDocument, TField>>, IEnumerable<TField>)
Creates an in filter.
public FilterDefinition<TDocument> In<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>
An in filter.
Type Parameters
TField
The type of the field.