Show / Hide Table of Contents

Class MongoQueryProvider

A mongo query provider.

Inheritance
System.Object
DataContextQueryProvider
MongoQueryProvider
Implements
IDataContextQueryProvider
IAsyncQueryProvider
System.Linq.IQueryProvider
Inherited Members
DataContextQueryProvider.DataContext
DataContextQueryProvider.QueryOperationContext
DataContextQueryProvider.NativeQueryProvider
DataContextQueryProvider.CreateQuery(Expression)
DataContextQueryProvider.CreateQuery<TElement>(Expression)
DataContextQueryProvider.Execute(Expression)
DataContextQueryProvider.Execute<TResult>(Expression)
DataContextQueryProvider.TryGetEntityActivator()
DataContextQueryProvider.GetExecutableExpression(Expression)
DataContextQueryProvider.CreateQueryExpressionVisitor(Func<Type, IContext, Type>, IActivator)
DataContextQueryProvider.AttachEntitiesToDataContext<TResult>(TResult)
DataContextQueryProvider.AttachEntityCollection<TResult, T>(TResult)
DataContextQueryProvider.ToExecutionResult<TResult, T>(IList<T>)
DataContextQueryProvider.IsAttachable(Object)
DataContextQueryProvider.IsAttachableType(Type)
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 MongoQueryProvider : DataContextQueryProvider, IDataContextQueryProvider, IAsyncQueryProvider, IQueryProvider

Constructors

| Improve this Doc View Source

MongoQueryProvider(IQueryOperationContext, IQueryProvider)

Initializes a new instance of the MongoQueryProvider class.

Declaration
public MongoQueryProvider(IQueryOperationContext queryOperationContext, IQueryProvider nativeQueryProvider)
Parameters
Type Name Description
IQueryOperationContext queryOperationContext

The query operation context.

System.Linq.IQueryProvider nativeQueryProvider

The native query provider.

Methods

| Improve this Doc View Source

CreateQuery<TElement>(IQueryable<TElement>)

Constructs an System.Linq.IQueryable object that can evaluate the query represented by a specified expression tree.

Declaration
protected override IQueryable<TElement> CreateQuery<TElement>(IQueryable<TElement> nativeQuery)
Parameters
Type Name Description
System.Linq.IQueryable<TElement> nativeQuery

The native query.

Returns
Type Description
System.Linq.IQueryable<TElement>

An System.Linq.IQueryable that can evaluate the query represented by the specified expression tree.

Type Parameters
Name Description
TElement

The query element type.

Overrides
Kephas.Data.Linq.DataContextQueryProvider.CreateQuery<TElement>(System.Linq.IQueryable<TElement>)
| Improve this Doc View Source

ExecuteAsync(Expression, CancellationToken)

Asynchronously executes the query represented by a specified expression tree.

Declaration
public override Task<object> ExecuteAsync(Expression expression, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Linq.Expressions.Expression expression

An expression tree that represents a LINQ query.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

Returns
Type Description
System.Threading.Tasks.Task<System.Object>

A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query.

Overrides
DataContextQueryProvider.ExecuteAsync(Expression, CancellationToken)
| Improve this Doc View Source

ExecuteAsync<TResult>(Expression, CancellationToken)

Asynchronously executes the strongly-typed query represented by a specified expression tree.

Declaration
public override Task<TResult> ExecuteAsync<TResult>(Expression expression, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Linq.Expressions.Expression expression

An expression tree that represents a LINQ query.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

Returns
Type Description
System.Threading.Tasks.Task<TResult>

A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query.

Type Parameters
Name Description
TResult

The type of the value that results from executing the query.

Overrides
DataContextQueryProvider.ExecuteAsync<TResult>(Expression, CancellationToken)

Implements

IDataContextQueryProvider
IAsyncQueryProvider
System.Linq.IQueryProvider

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