RelationalQueryModelVisitor RelationalQueryModelVisitor Class

Definition

The default relational visitor.

public class RelationalQueryModelVisitor : EntityQueryModelVisitor
Public Class RelationalQueryModelVisitor
    Inherits EntityQueryModelVisitor
Inheritance
System.ObjectSystem.Object
RelationalQueryModelVisitorRelationalQueryModelVisitor

Constructors

RelationalQueryModelVisitor(IQueryOptimizer, INavigationRewritingExpressionVisitorFactory, ISubQueryMemberPushDownExpressionVisitor, IQuerySourceTracingExpressionVisitorFactory, IEntityResultFindingExpressionVisitorFactory, ITaskBlockingExpressionVisitor, IMemberAccessBindingExpressionVisitorFactory, IOrderingExpressionVisitorFactory, IProjectionExpressionVisitorFactory, IEntityQueryableExpressionVisitorFactory, IQueryAnnotationExtractor, IResultOperatorHandler, IEntityMaterializerSource, IExpressionPrinter, IRelationalAnnotationProvider, IIncludeExpressionVisitorFactory, ISqlTranslatingExpressionVisitorFactory, ICompositePredicateExpressionVisitorFactory, IConditionalRemovingExpressionVisitorFactory, IQueryFlattenerFactory, IDbContextOptions, RelationalQueryCompilationContext, RelationalQueryModelVisitor) RelationalQueryModelVisitor(IQueryOptimizer, INavigationRewritingExpressionVisitorFactory, ISubQueryMemberPushDownExpressionVisitor, IQuerySourceTracingExpressionVisitorFactory, IEntityResultFindingExpressionVisitorFactory, ITaskBlockingExpressionVisitor, IMemberAccessBindingExpressionVisitorFactory, IOrderingExpressionVisitorFactory, IProjectionExpressionVisitorFactory, IEntityQueryableExpressionVisitorFactory, IQueryAnnotationExtractor, IResultOperatorHandler, IEntityMaterializerSource, IExpressionPrinter, IRelationalAnnotationProvider, IIncludeExpressionVisitorFactory, ISqlTranslatingExpressionVisitorFactory, ICompositePredicateExpressionVisitorFactory, IConditionalRemovingExpressionVisitorFactory, IQueryFlattenerFactory, IDbContextOptions, RelationalQueryCompilationContext, RelationalQueryModelVisitor)

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.

Properties

ContextOptions ContextOptions

Gets the options for the target context.

CurrentParameter CurrentParameter

Gets the expression for the current parameter.

(Inherited from EntityQueryModelVisitor)
Expression Expression

Gets the expression that represents this query.

(Inherited from EntityQueryModelVisitor)
LinqOperatorProvider LinqOperatorProvider

Gets the ILinqOperatorProvider being used for this query.

(Inherited from EntityQueryModelVisitor)
ParentQueryModelVisitor ParentQueryModelVisitor

Gets the parent query model visitor, or null if there is no parent.

Queries Queries

The SelectExpressions active in the current query compilation.

QueriesBySource QueriesBySource

The SelectExpressions for this query, mapped by query source.

QueryCompilationContext QueryCompilationContext

Context for the query compilation.

RequiresClientEval RequiresClientEval

Gets or sets a value indicating whether the query requires client eval.

RequiresClientFilter RequiresClientFilter

Gets or sets a value indicating whether the query requires client filter.

RequiresClientJoin RequiresClientJoin

Gets or sets a value indicating whether the query requires client join.

RequiresClientOrderBy RequiresClientOrderBy

Gets or sets a value indicating whether the query requires client order by.

RequiresClientProjection RequiresClientProjection

Gets or sets a value indicating whether the query requires client projection.

RequiresClientResultOperator RequiresClientResultOperator

Gets or sets a value indicating whether the query requires client result operator.

RequiresClientSelectMany RequiresClientSelectMany

Gets or sets a value indicating whether the query requires client select many.

Methods

AddOrUpdateMapping(IQuerySource, Expression) AddOrUpdateMapping(IQuerySource, Expression)

Adds or updates the expression mapped to a query source.

(Inherited from EntityQueryModelVisitor)
AddQuery(IQuerySource, SelectExpression) AddQuery(IQuerySource, SelectExpression)

Adds a SelectExpression to this query.

BindLocalMethodCallExpression(MethodCallExpression) BindLocalMethodCallExpression(MethodCallExpression)

Bind a local method call expression.

BindMemberExpression(MemberExpression, Action<IProperty, IQuerySource>) BindMemberExpression(MemberExpression, Action(Of IProperty, IQuerySource))

Binds a member expression.

(Inherited from EntityQueryModelVisitor)
BindMemberExpression<TResult>(MemberExpression, Func<IProperty, IQuerySource, SelectExpression, TResult>, Boolean) BindMemberExpression(Of TResult)(MemberExpression, Func(Of IProperty, IQuerySource, SelectExpression, TResult), Boolean)

Bind a member expression.

Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindMemberExpression<TResult>(System.Linq.Expressions.MemberExpression, IQuerySource, System.Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, IQuerySource, TResult>) Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindMemberExpression<TResult>(System.Linq.Expressions.MemberExpression, IQuerySource, System.Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, IQuerySource, TResult>) Inherited from EntityQueryModelVisitor
BindMemberToOuterQueryParameter(MemberExpression) BindMemberToOuterQueryParameter(MemberExpression)
BindMemberToValueBuffer(MemberExpression, Expression) BindMemberToValueBuffer(MemberExpression, Expression)

Bind a member expression to a value buffer access.

BindMethodCallExpression(MethodCallExpression, Action<IProperty, IQuerySource>) BindMethodCallExpression(MethodCallExpression, Action(Of IProperty, IQuerySource))

Binds a method call expression.

(Inherited from EntityQueryModelVisitor)
BindMethodCallExpression<TResult>(MethodCallExpression, Func<IProperty, IQuerySource, SelectExpression, TResult>, Boolean) BindMethodCallExpression(Of TResult)(MethodCallExpression, Func(Of IProperty, IQuerySource, SelectExpression, TResult), Boolean)

Bind a method call expression.

Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindMethodCallExpression<TResult>(System.Linq.Expressions.MethodCallExpression, System.Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, IQuerySource, TResult>) Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindMethodCallExpression<TResult>(System.Linq.Expressions.MethodCallExpression, System.Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, IQuerySource, TResult>) Inherited from EntityQueryModelVisitor
Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindMethodCallExpression<TResult>(System.Linq.Expressions.MethodCallExpression, IQuerySource, System.Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, IQuerySource, TResult>) Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindMethodCallExpression<TResult>(System.Linq.Expressions.MethodCallExpression, IQuerySource, System.Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, IQuerySource, TResult>) Inherited from EntityQueryModelVisitor
BindMethodCallToValueBuffer(MethodCallExpression, Expression) BindMethodCallToValueBuffer(MethodCallExpression, Expression)

Bind a method call expression to a value buffer access.

BindMethodToOuterQueryParameter(MethodCallExpression) BindMethodToOuterQueryParameter(MethodCallExpression)
Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindNavigationPathPropertyExpression<TResult>(System.Linq.Expressions.Expression, System.Func<System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase>, IQuerySource, TResult>) Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.BindNavigationPathPropertyExpression<TResult>(System.Linq.Expressions.Expression, System.Func<System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase>, IQuerySource, TResult>) Inherited from EntityQueryModelVisitor
BindReadValueMethod(Type, Expression, Int32) BindReadValueMethod(Type, Expression, Int32)

Binds a value buffer read.

(Inherited from EntityQueryModelVisitor)
CompileAdditionalFromClauseExpression(AdditionalFromClause, QueryModel) CompileAdditionalFromClauseExpression(AdditionalFromClause, QueryModel)

Compile an additional from clause expression.

CompileGroupJoinInnerSequenceExpression(GroupJoinClause, QueryModel) CompileGroupJoinInnerSequenceExpression(GroupJoinClause, QueryModel)

Compile a group join inner sequence expression.

CompileJoinClauseInnerSequenceExpression(JoinClause, QueryModel) CompileJoinClauseInnerSequenceExpression(JoinClause, QueryModel)

Compile a join clause inner sequence expression.

CompileMainFromClauseExpression(MainFromClause, QueryModel) CompileMainFromClauseExpression(MainFromClause, QueryModel)

Compile main from clause expression.

CreateAsyncQueryExecutor<TResult>(QueryModel) CreateAsyncQueryExecutor(Of TResult)(QueryModel)

Creates an action to asynchronously execute this query.

(Inherited from EntityQueryModelVisitor)
CreateExecutorLambda<TResults>() CreateExecutorLambda(Of TResults)()

Creates an action to execute this query.

(Inherited from EntityQueryModelVisitor)
CreatePropertyExpression(Expression, IProperty) CreatePropertyExpression(Expression, IProperty)

Creates an expression to access the given property on an given entity.

(Inherited from EntityQueryModelVisitor)
CreateQueryExecutor<TResult>(QueryModel) CreateQueryExecutor(Of TResult)(QueryModel)

Creates an action to execute this query.

(Inherited from EntityQueryModelVisitor)
ExtractQueryAnnotations(QueryModel) ExtractQueryAnnotations(QueryModel)

Populates QueryAnnotations based on annotations found in the query.

(Inherited from EntityQueryModelVisitor)
IncludeNavigations(IncludeSpecification, Type, Expression, Boolean) IncludeNavigations(IncludeSpecification, Type, Expression, Boolean)

High-level method called to perform Include compilation for a single Include.

IncludeNavigations(QueryModel) IncludeNavigations(QueryModel)

Includes related data requested in the LINQ query.

(Inherited from EntityQueryModelVisitor)
IncludeNavigations(QueryModel, IReadOnlyCollection<IncludeSpecification>) IncludeNavigations(QueryModel, IReadOnlyCollection(Of IncludeSpecification))

High-level method called to perform Include compilation.

InterceptExceptions() InterceptExceptions()

Executes the query and logs any exceptions that occur.

(Inherited from EntityQueryModelVisitor)
IsPropertyMethod(MethodInfo) IsPropertyMethod(MethodInfo)

Determines if a System.Reflection.MethodInfo is referencing the Property<TProperty>(Object, String) method.

(Inherited from EntityQueryModelVisitor)
OptimizeJoinClause(JoinClause, QueryModel, Int32, Action, MethodInfo, Boolean) OptimizeJoinClause(JoinClause, QueryModel, Int32, Action, MethodInfo, Boolean)

Optimize a join clause.

OptimizeQueryModel(QueryModel) OptimizeQueryModel(QueryModel)

Applies optimizations to the query.

(Inherited from EntityQueryModelVisitor)
RegisterSubQueryVisitor(IQuerySource, RelationalQueryModelVisitor) RegisterSubQueryVisitor(IQuerySource, RelationalQueryModelVisitor)

Registers a sub query visitor.

ReplaceClauseReferences(Expression, IQuerySource, Boolean) ReplaceClauseReferences(Expression, IQuerySource, Boolean)

Translates a re-linq query model expression into a compiled query expression.

(Inherited from EntityQueryModelVisitor)
SingleResultToSequence(QueryModel, Type) SingleResultToSequence(QueryModel, Type)

Converts the results of the query from a single result to a series of results.

(Inherited from EntityQueryModelVisitor)
TrackEntitiesInResults<TResult>(QueryModel) TrackEntitiesInResults(Of TResult)(QueryModel)

Applies tracking behavior to the query.

(Inherited from EntityQueryModelVisitor)
TryGetQuery(IQuerySource) TryGetQuery(IQuerySource)

Try and get the active SelectExpression for a given query source.

VisitAdditionalFromClause(AdditionalFromClause, QueryModel, Int32) VisitAdditionalFromClause(AdditionalFromClause, QueryModel, Int32)

Visit an additional from clause.

VisitGroupJoinClause(GroupJoinClause, QueryModel, Int32) VisitGroupJoinClause(GroupJoinClause, QueryModel, Int32)

Visit a group join clause.

VisitJoinClause(JoinClause, QueryModel, Int32) VisitJoinClause(JoinClause, QueryModel, Int32)

Visit a join clause.

VisitMainFromClause(MainFromClause, QueryModel) VisitMainFromClause(MainFromClause, QueryModel)

Visits the node.

(Inherited from EntityQueryModelVisitor)
VisitOrderByClause(OrderByClause, QueryModel, Int32) VisitOrderByClause(OrderByClause, QueryModel, Int32)

Visit an order by clause.

VisitOrdering(Ordering, QueryModel, OrderByClause, Int32) VisitOrdering(Ordering, QueryModel, OrderByClause, Int32)

Visits nodes.

(Inherited from EntityQueryModelVisitor)
VisitQueryModel(QueryModel) VisitQueryModel(QueryModel)

Visit a query model.

VisitResultOperator(ResultOperatorBase, QueryModel, Int32) VisitResultOperator(ResultOperatorBase, QueryModel, Int32)

Visit a result operator.

VisitSelectClause(SelectClause, QueryModel) VisitSelectClause(SelectClause, QueryModel)

Visits nodes.

(Inherited from EntityQueryModelVisitor)
VisitSubQueryModel(QueryModel) VisitSubQueryModel(QueryModel)

Visit a sub-query model.

VisitWhereClause(WhereClause, QueryModel, Int32) VisitWhereClause(WhereClause, QueryModel, Int32)

Visit a where clause.

WarnClientEval(Object) WarnClientEval(Object)

Generated a client-eval warning

Fields

QueryContextParameter QueryContextParameter

Expression to reference the QueryContext parameter for a query.

(Inherited from EntityQueryModelVisitor)