Table of Contents

Class MongoQueryProvider

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.Legacy.dll

An implementation of IQueryProvider for querying a MongoDB collection.

public class MongoQueryProvider : IQueryProvider
Inheritance
MongoQueryProvider
Implements
Inherited Members
Extension Methods

Constructors

MongoQueryProvider(MongoCollection)

Initializes a new instance of the MongoQueryProvider class.

Properties

Collection

Gets the Collection.

Methods

BuildMongoQuery<T>(MongoQueryable<T>)

Builds the MongoDB query that will be sent to the server when the LINQ query is executed.

CreateQuery(Expression)

Creates a new instance MongoQueryable{{T}} for this provider. Calls the generic CreateQuery{{T}} to actually create the new MongoQueryable{{T}} instance.

CreateQuery<T>(Expression)

Creates a new instance of MongoQueryable{{T}} for this provider.

Execute(Expression)

Executes a query. Calls the generic method Execute{{T}} to actually execute the query.

Execute<TResult>(Expression)

Executes a query.