Show / Hide Table of Contents

Class MongoQuery<T>

A mongo query adapter.

Inheritance
System.Object
DataContextQuery<T>
MongoQuery<T>
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
DataContextQuery<T>.NativeQuery
DataContextQuery<T>.ElementType
DataContextQuery<T>.Expression
DataContextQuery<T>.Provider
DataContextQuery<T>.GetEnumerator()
DataContextQuery<T>.IEnumerable.GetEnumerator()
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 Source

MongoQuery(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 Source

GetExecutionModel()

Gets the execution model.

Declaration
public QueryableExecutionModel GetExecutionModel()
Returns
Type Description
MongoDB.Driver.Linq.QueryableExecutionModel

The execution model.

| Improve this Doc View Source

GetNativeExecutableQuery()

Gets the native executable query.

Declaration
protected virtual IMongoQueryable<T> GetNativeExecutableQuery()
Returns
Type Description
MongoDB.Driver.Linq.IMongoQueryable<T>

The native executable query.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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>

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX