Method LTE
LTE<TMember>(Expression<Func<TDocument, TMember>>, TMember)
Tests that the value of the named element is less than or equal to some value (see $lte).
public static IMongoQuery LTE<TMember>(Expression<Func<TDocument, TMember>> memberExpression, TMember value)
Parameters
memberExpression
Expression<Func<TDocument, TMember>>The member expression representing the element to test.
value
TMemberThe value to compare to.
Returns
- IMongoQuery
An IMongoQuery.
Type Parameters
TMember
The member type.
LTE<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>>, TValue)
Tests that any of the values in the named array element is less than or equal to some value (see $lte).
public static IMongoQuery LTE<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>> memberExpression, TValue value)
Parameters
memberExpression
Expression<Func<TDocument, IEnumerable<TValue>>>The member expression representing the element to test.
value
TValueThe value to compare to.
Returns
- IMongoQuery
An IMongoQuery.
Type Parameters
TValue
The type of the value.