Class LinqExtensionMethods
Static class that contains the Mongo Linq extension methods.
- Inheritance
-
Linq
Extension Methods
- Inherited Members
Methods
AsQueryable<T>(MongoCollection)
Returns an instance of IQueryable{{T}} for a MongoCollection.
Parameters
collection
MongoCollection The name of the collection.
Returns
- IQueryable<T>
An instance of IQueryable{{T}} for a MongoCollection.
Type Parameters
T
The type of the returned documents.
AsQueryable<T>(MongoCollection<T>)
Returns an instance of IQueryable{{T}} for a MongoCollection.
Parameters
collection
MongoCollection <T>The name of the collection.
Returns
- IQueryable<T>
An instance of IQueryable{{T}} for a MongoCollection.
Type Parameters
T
The type of the returned documents.
Explain<TSource>(IQueryable<TSource>)
Returns an explanation of how the query was executed (instead of the results).
Parameters
source
IQueryable<TSource>The LINQ query to explain.
Returns
- Bson
Document An explanation of thow the query was executed.
Type Parameters
TSource
The type of the elements of source.
Explain<TSource>(IQueryable<TSource>, bool)
Returns an explanation of how the query was executed (instead of the results).
Parameters
source
IQueryable<TSource>The LINQ query to explain
verbose
boolWhether the explanation should contain more details.
Returns
- Bson
Document An explanation of thow the query was executed.
Type Parameters
TSource
The type of the elements of source.