MongoQueryableT Class |
Namespace: MongoDB.Driver.Linq
public class MongoQueryable<T> : IOrderedQueryable<T>, IQueryable<T>, IEnumerable<T>, IEnumerable, IQueryable, IOrderedQueryable
The MongoQueryableT type exposes the following members.
Name | Description | |
---|---|---|
MongoQueryableT(MongoQueryProvider) |
Initializes a new instance of the MongoQueryable class.
| |
MongoQueryableT(MongoQueryProvider, Expression) |
Initializes a new instance of the MongoQueryable class.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Gets an enumerator for the results of a MongoDB LINQ query.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetMongoQuery |
Gets the MongoDB query that will be sent to the server when this LINQ query is executed.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ContainsAllT |
Determines whether a sequence contains all of the specified values.
(Defined by LinqToMongo.) | |
ContainsAnyT |
Determines whether a sequence contains any of the specified values.
(Defined by LinqToMongo.) | |
ExplainT | Overloaded.
Returns an explanation of how the query was executed (instead of the results).
(Defined by LinqExtensionMethods.) | |
ExplainT(Boolean) | Overloaded.
Returns an explanation of how the query was executed (instead of the results).
(Defined by LinqExtensionMethods.) | |
FirstAsyncT(CancellationToken) | Overloaded.
Returns the first element of a sequence.
(Defined by MongoQueryable.) | |
FirstAsyncT(ExpressionFuncT, Boolean, CancellationToken) | Overloaded.
Returns the first element of a sequence that satisfies a specified condition.
(Defined by MongoQueryable.) | |
FirstOrDefaultAsyncT(CancellationToken) | Overloaded.
Returns the first element of a sequence, or a default value if the sequence contains no elements.
(Defined by MongoQueryable.) | |
FirstOrDefaultAsyncT(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.) | |
SingleAsyncT(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.) | |
SingleAsyncT(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.) | |
SingleOrDefaultAsyncT(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.) | |
SingleOrDefaultAsyncT(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.) | |
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) | |
WithIndexT(String) | Overloaded.
Sets an index hint on the query that's being built.
(Defined by LinqToMongo.) | |
WithIndexT(BsonDocument) | Overloaded.
Sets an index hint on the query that's being built.
(Defined by LinqToMongo.) |