Method All
All<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>>, IEnumerable<TValue>)
Tests that the named array element contains all of the values (see $all).
public static IMongoQuery All<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>> memberExpression, IEnumerable<TValue> values)
Parameters
memberExpression
Expression<Func<TDocument, IEnumerable<TValue>>>The member expression representing the element to test.
values
IEnumerable<TValue>The values to compare to.
Returns
- IMongoQuery
An IMongoQuery.
Type Parameters
TValue
The type of the enumerable member values.