Table of Contents

Method CreateQuery

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

CreateQuery<T>(Expression)

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

public IQueryable<T> CreateQuery<T>(Expression expression)

Parameters

expression Expression

The query expression.

Returns

IQueryable<T>

A new instance of MongoQueryable{{T}}.

Type Parameters

T

The type of the returned elements.

CreateQuery(Expression)

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

public IQueryable CreateQuery(Expression expression)

Parameters

expression Expression

The query expression.

Returns

IQueryable

A new instance of MongoQueryable{{T}}.