Class MongoQuery<T>
A mongo query adapter.
Implements
System.Linq.IOrderedQueryable<T>
System.Linq.IOrderedQueryable
MongoDB.Driver.Linq.IMongoQueryable<T>
MongoDB.Driver.Linq.IMongoQueryable
System.Linq.IQueryable<T>
System.Linq.IQueryable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
MongoDB.Driver.IAsyncCursorSource<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.MongoDB.Linq
Assembly: Kephas.Data.MongoDB.dll
Syntax
public class MongoQuery<T> : DataContextQuery<T>, IOrderedQueryable<T>, IOrderedQueryable, IMongoQueryable<T>, IMongoQueryable, IQueryable<T>, IQueryable, IEnumerable<T>, IEnumerable, IAsyncCursorSource<T>
Type Parameters
Name | Description |
---|---|
T | The entity type. |
Constructors
| Improve this Doc View SourceMongoQuery(MongoQueryProvider, IMongoQueryable<T>)
Initializes a new instance of the MongoQuery<T> class.
Declaration
public MongoQuery(MongoQueryProvider queryProvider, IMongoQueryable<T> nativeQuery)
Parameters
Type | Name | Description |
---|---|---|
MongoQueryProvider | queryProvider | The query provider. |
MongoDB.Driver.Linq.IMongoQueryable<T> | nativeQuery | The native query. |
Methods
| Improve this Doc View SourceGetExecutionModel()
Gets the execution model.
Declaration
public QueryableExecutionModel GetExecutionModel()
Returns
Type | Description |
---|---|
MongoDB.Driver.Linq.QueryableExecutionModel | The execution model. |
GetNativeExecutableQuery()
Gets the native executable query.
Declaration
protected virtual IMongoQueryable<T> GetNativeExecutableQuery()
Returns
Type | Description |
---|---|
MongoDB.Driver.Linq.IMongoQueryable<T> | The native executable query. |
ToCursor(CancellationToken)
Executes the operation and returns a cursor to the results.
Declaration
public IAsyncCursor<T> ToCursor(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
MongoDB.Driver.IAsyncCursor<T> | A cursor. |
ToCursorAsync(CancellationToken)
Executes the operation and returns a cursor to the results.
Declaration
public Task<IAsyncCursor<T>> ToCursorAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<MongoDB.Driver.IAsyncCursor<T>> | A Task whose result is a cursor. |
Implements
System.Linq.IOrderedQueryable<T>
System.Linq.IOrderedQueryable
MongoDB.Driver.Linq.IMongoQueryable<T>
MongoDB.Driver.Linq.IMongoQueryable
System.Linq.IQueryable<T>
System.Linq.IQueryable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
MongoDB.Driver.IAsyncCursorSource<TDocument>