Table of Contents

Method GT

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

GT<TMember>(Expression<Func<TDocument, TMember>>, TMember)

Tests that the value of the named element is greater than some value (see $gt).

public IMongoQuery GT<TMember>(Expression<Func<TDocument, TMember>> memberExpression, TMember value)

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression representing the element to test.

value TMember

The value to compare to.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TMember

The member type.

GT<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>>, TValue)

Tests that any of the values in the named array element is greater than some value (see $lt).

public IMongoQuery GT<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 TValue

The value to compare to.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TValue

The type of the value.