C# Class MongoDB.Driver.Linq.SelectQuery

Represents a LINQ query that has been translated to an equivalent MongoDB Find query.
Inheritance: TranslatedQuery
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode Description
BuildQuery ( ) : IMongoQuery

Creates an IMongoQuery from the where clause (returns null if no where clause was specified).

Execute ( ) : object

Executes the translated Find query.

SelectQuery ( MongoCollection collection, Type documentType ) : System

Initializes a new instance of the MongoLinqFindQuery class.

Translate ( Expression expression ) : void

Translates a LINQ query expression tree.

Private Methods

Méthode Description
CombinePredicateWithWhereClause ( MethodCallExpression methodCallExpression, LambdaExpression predicate ) : void
EnsurePreviousExpressionIsSkipOrTake ( ) : void
ExecuteDistinct ( IMongoQuery query ) : object
SetElementSelector ( MethodCallExpression methodCallExpression, object>.Func elementSelector ) : void
StripQuote ( Expression expression ) : Expression
ToInt32 ( Expression expression ) : int
TranslateAny ( MethodCallExpression methodCallExpression ) : void
TranslateCount ( MethodCallExpression methodCallExpression ) : void
TranslateDistinct ( MethodCallExpression methodCallExpression ) : void
TranslateElementAt ( MethodCallExpression methodCallExpression ) : void
TranslateFirstOrSingle ( MethodCallExpression methodCallExpression ) : void
TranslateLast ( MethodCallExpression methodCallExpression ) : void
TranslateMaxMin ( MethodCallExpression methodCallExpression ) : void
TranslateMethodCall ( MethodCallExpression methodCallExpression ) : void
TranslateOfType ( MethodCallExpression methodCallExpression ) : void
TranslateOrderBy ( MethodCallExpression methodCallExpression ) : void
TranslateSelect ( MethodCallExpression methodCallExpression ) : void
TranslateSkip ( MethodCallExpression methodCallExpression ) : void
TranslateTake ( MethodCallExpression methodCallExpression ) : void
TranslateThenBy ( MethodCallExpression methodCallExpression ) : void
TranslateWhere ( MethodCallExpression methodCallExpression ) : void

Method Details

BuildQuery() public méthode

Creates an IMongoQuery from the where clause (returns null if no where clause was specified).
public BuildQuery ( ) : IMongoQuery
Résultat IMongoQuery

Execute() public méthode

Executes the translated Find query.
public Execute ( ) : object
Résultat object

SelectQuery() public méthode

Initializes a new instance of the MongoLinqFindQuery class.
public SelectQuery ( MongoCollection collection, Type documentType ) : System
collection MongoCollection The collection being queried.
documentType System.Type The document type.
Résultat System

Translate() public méthode

Translates a LINQ query expression tree.
public Translate ( Expression expression ) : void
expression System.Linq.Expressions.Expression The LINQ query expression tree.
Résultat void