QueryCompiler QueryCompiler Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class QueryCompiler : IQueryCompiler
Public Class QueryCompiler
    Implements IQueryCompiler
Inheritance
System.ObjectSystem.Object
QueryCompilerQueryCompiler
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

QueryCompiler(IQueryContextFactory, ICompiledQueryCache, ICompiledQueryCacheKeyGenerator, IDatabase, ISensitiveDataLogger, MethodInfoBasedNodeTypeRegistry, ICurrentDbContext) QueryCompiler(IQueryContextFactory, ICompiledQueryCache, ICompiledQueryCacheKeyGenerator, IDatabase, ISensitiveDataLogger(Of QueryCompiler), MethodInfoBasedNodeTypeRegistry, ICurrentDbContext)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public QueryCompiler(IQueryContextFactory queryContextFactory, ICompiledQueryCache compiledQueryCache, ICompiledQueryCacheKeyGenerator compiledQueryCacheKeyGenerator, IDatabase database, ISensitiveDataLogger<QueryCompiler> logger, MethodInfoBasedNodeTypeRegistry methodInfoBasedNodeTypeRegistry, ICurrentDbContext currentContext)
Public Sub New(queryContextFactory As IQueryContextFactory, compiledQueryCache As ICompiledQueryCache, compiledQueryCacheKeyGenerator As ICompiledQueryCacheKeyGenerator, database As IDatabase, logger As ISensitiveDataLogger(Of QueryCompiler), methodInfoBasedNodeTypeRegistry As MethodInfoBasedNodeTypeRegistry, currentContext As ICurrentDbContext)
Parameters
database
IDatabase IDatabase
methodInfoBasedNodeTypeRegistry
MethodInfoBasedNodeTypeRegistry MethodInfoBasedNodeTypeRegistry

Properties

Database Database

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual IDatabase Database { get; }
Protected Overridable ReadOnly Property Database As IDatabase

Methods

CompileAsyncQuery(Expression) CompileAsyncQuery(Of TResult)(Expression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual Func<QueryContext, IAsyncEnumerable<TResult>> CompileAsyncQuery<TResult>(Expression query)
Protected Overridable Function CompileAsyncQuery(Of TResult)(query As Expression) As Func(Of QueryContext, IAsyncEnumerable(Of TResult))
Type Parameters
TResult
Parameters
query
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
Returns
System.Func<QueryContext, IAsyncEnumerable<TResult>> System.Func(Of QueryContext, IAsyncEnumerable(Of TResult))

CompileQuery(Expression) CompileQuery(Of TResult)(Expression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual Func<QueryContext, TResult> CompileQuery<TResult>(Expression query)
Protected Overridable Function CompileQuery(Of TResult)(query As Expression) As Func(Of QueryContext, TResult)
Type Parameters
TResult
Parameters
query
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
Returns
System.Func<QueryContext, TResult> System.Func(Of QueryContext, TResult)

Execute(Expression) Execute(Of TResult)(Expression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual TResult Execute<TResult>(Expression query)
Public Overridable Function Execute(Of TResult)(query As Expression) As TResult
Type Parameters
TResult
Parameters
query
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
Returns
TResult TResult

ExecuteAsync(Expression) ExecuteAsync(Of TResult)(Expression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IAsyncEnumerable<TResult> ExecuteAsync<TResult>(Expression query)
Public Overridable Function ExecuteAsync(Of TResult)(query As Expression) As IAsyncEnumerable(Of TResult)
Type Parameters
TResult
Parameters
query
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
Returns
IAsyncEnumerable<TResult> IAsyncEnumerable(Of TResult)

ExecuteAsync(Expression, CancellationToken) ExecuteAsync(Of TResult)(Expression, CancellationToken)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual Task<TResult> ExecuteAsync<TResult>(Expression query, CancellationToken cancellationToken)
Public Overridable Function ExecuteAsync(Of TResult)(query As Expression, cancellationToken As CancellationToken) As Task(Of TResult)
Type Parameters
TResult
Parameters
query
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<TResult> System.Threading.Tasks.Task(Of TResult)

ExtractParameters(Expression, QueryContext) ExtractParameters(Expression, QueryContext)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual Expression ExtractParameters(Expression query, QueryContext queryContext)
Protected Overridable Function ExtractParameters(query As Expression, queryContext As QueryContext) As Expression
Parameters
query
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
queryContext
QueryContext QueryContext
Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression