Click or drag to resize
MongoQueryableT Class
An implementation of IQueryable{{T}} for querying a MongoDB collection. This class has been named MongoQueryable instead of MongoQuery to avoid confusion with IMongoQuery.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.LinqMongoQueryableT

Namespace: MongoDB.Driver.Linq
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.1.0
Syntax
public class MongoQueryable<T> : IOrderedQueryable<T>, 
	IQueryable<T>, IEnumerable<T>, IEnumerable, IQueryable, IOrderedQueryable

Type Parameters

T
The type of the documents being queried.

The MongoQueryableT type exposes the following members.

Constructors
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator for the results of a MongoDB LINQ query.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMongoQuery
Gets the MongoDB query that will be sent to the server when this LINQ query is executed.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodContainsAllT
Determines whether a sequence contains all of the specified values.
(Defined by LinqToMongo.)
Public Extension MethodContainsAnyT
Determines whether a sequence contains any of the specified values.
(Defined by LinqToMongo.)
Public Extension MethodExplainTOverloaded.
Returns an explanation of how the query was executed (instead of the results).
(Defined by LinqExtensionMethods.)
Public Extension MethodExplainT(Boolean)Overloaded.
Returns an explanation of how the query was executed (instead of the results).
(Defined by LinqExtensionMethods.)
Public Extension MethodFirstAsyncT(CancellationToken)Overloaded.
Returns the first element of a sequence.
(Defined by MongoQueryable.)
Public Extension MethodFirstAsyncT(ExpressionFuncT, Boolean, CancellationToken)Overloaded.
Returns the first element of a sequence that satisfies a specified condition.
(Defined by MongoQueryable.)
Public Extension MethodFirstOrDefaultAsyncT(CancellationToken)Overloaded.
Returns the first element of a sequence, or a default value if the sequence contains no elements.
(Defined by MongoQueryable.)
Public Extension MethodFirstOrDefaultAsyncT(ExpressionFuncT, Boolean, CancellationToken)Overloaded.
Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.
(Defined by MongoQueryable.)
Public Extension MethodSingleAsyncT(CancellationToken)Overloaded.
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
(Defined by MongoQueryable.)
Public Extension MethodSingleAsyncT(ExpressionFuncT, Boolean, CancellationToken)Overloaded.
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
(Defined by MongoQueryable.)
Public Extension MethodSingleOrDefaultAsyncT(CancellationToken)Overloaded.
Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
(Defined by MongoQueryable.)
Public Extension MethodSingleOrDefaultAsyncT(ExpressionFuncT, Boolean, CancellationToken)Overloaded.
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
(Defined by MongoQueryable.)
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodWithIndexT(String)Overloaded.
Sets an index hint on the query that's being built.
(Defined by LinqToMongo.)
Public Extension MethodWithIndexT(BsonDocument)Overloaded.
Sets an index hint on the query that's being built.
(Defined by LinqToMongo.)
Top
See Also