SqlServerQueryModelVisitor SqlServerQueryModelVisitor 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 SqlServerQueryModelVisitor : RelationalQueryModelVisitor
Public Class SqlServerQueryModelVisitor
    Inherits RelationalQueryModelVisitor
Inheritance
System.ObjectSystem.Object
SqlServerQueryModelVisitorSqlServerQueryModelVisitor

Constructors

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

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 SqlServerQueryModelVisitor(IQueryOptimizer queryOptimizer, INavigationRewritingExpressionVisitorFactory navigationRewritingExpressionVisitorFactory, ISubQueryMemberPushDownExpressionVisitor subQueryMemberPushDownExpressionVisitor, IQuerySourceTracingExpressionVisitorFactory querySourceTracingExpressionVisitorFactory, IEntityResultFindingExpressionVisitorFactory entityResultFindingExpressionVisitorFactory, ITaskBlockingExpressionVisitor taskBlockingExpressionVisitor, IMemberAccessBindingExpressionVisitorFactory memberAccessBindingExpressionVisitorFactory, IOrderingExpressionVisitorFactory orderingExpressionVisitorFactory, IProjectionExpressionVisitorFactory projectionExpressionVisitorFactory, IEntityQueryableExpressionVisitorFactory entityQueryableExpressionVisitorFactory, IQueryAnnotationExtractor queryAnnotationExtractor, IResultOperatorHandler resultOperatorHandler, IEntityMaterializerSource entityMaterializerSource, IExpressionPrinter expressionPrinter, IRelationalAnnotationProvider relationalAnnotationProvider, IIncludeExpressionVisitorFactory includeExpressionVisitorFactory, ISqlTranslatingExpressionVisitorFactory sqlTranslatingExpressionVisitorFactory, ICompositePredicateExpressionVisitorFactory compositePredicateExpressionVisitorFactory, IConditionalRemovingExpressionVisitorFactory conditionalRemovingExpressionVisitorFactory, IQueryFlattenerFactory queryFlattenerFactory, IDbContextOptions contextOptions, RelationalQueryCompilationContext queryCompilationContext, SqlServerQueryModelVisitor parentQueryModelVisitor)
Public Sub New(queryOptimizer As IQueryOptimizer, navigationRewritingExpressionVisitorFactory As INavigationRewritingExpressionVisitorFactory, subQueryMemberPushDownExpressionVisitor As ISubQueryMemberPushDownExpressionVisitor, querySourceTracingExpressionVisitorFactory As IQuerySourceTracingExpressionVisitorFactory, entityResultFindingExpressionVisitorFactory As IEntityResultFindingExpressionVisitorFactory, taskBlockingExpressionVisitor As ITaskBlockingExpressionVisitor, memberAccessBindingExpressionVisitorFactory As IMemberAccessBindingExpressionVisitorFactory, orderingExpressionVisitorFactory As IOrderingExpressionVisitorFactory, projectionExpressionVisitorFactory As IProjectionExpressionVisitorFactory, entityQueryableExpressionVisitorFactory As IEntityQueryableExpressionVisitorFactory, queryAnnotationExtractor As IQueryAnnotationExtractor, resultOperatorHandler As IResultOperatorHandler, entityMaterializerSource As IEntityMaterializerSource, expressionPrinter As IExpressionPrinter, relationalAnnotationProvider As IRelationalAnnotationProvider, includeExpressionVisitorFactory As IIncludeExpressionVisitorFactory, sqlTranslatingExpressionVisitorFactory As ISqlTranslatingExpressionVisitorFactory, compositePredicateExpressionVisitorFactory As ICompositePredicateExpressionVisitorFactory, conditionalRemovingExpressionVisitorFactory As IConditionalRemovingExpressionVisitorFactory, queryFlattenerFactory As IQueryFlattenerFactory, contextOptions As IDbContextOptions, queryCompilationContext As RelationalQueryCompilationContext, parentQueryModelVisitor As SqlServerQueryModelVisitor)
Parameters

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.

(Inherited from RelationalQueryModelVisitor)

BindLocalMethodCallExpression(MethodCallExpression) BindLocalMethodCallExpression(MethodCallExpression)

Bind a local method call expression.

(Inherited from RelationalQueryModelVisitor)

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

Binds a member expression.

(Inherited from EntityQueryModelVisitor)

BindMemberExpression(MemberExpression, Func, Boolean) BindMemberExpression(Of TResult)(MemberExpression, Func(Of IProperty, IQuerySource, SelectExpression, TResult), Boolean)

BindMemberExpression(MemberExpression, IQuerySource, Func) BindMemberExpression(Of TResult)(MemberExpression, IQuerySource, Func(Of 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.

(Inherited from RelationalQueryModelVisitor)

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

Binds a method call expression.

(Inherited from EntityQueryModelVisitor)

BindMethodCallExpression(MethodCallExpression, Func, Boolean) BindMethodCallExpression(Of TResult)(MethodCallExpression, Func(Of IProperty, IQuerySource, SelectExpression, TResult), Boolean)

BindMethodCallExpression(MethodCallExpression, Func) BindMethodCallExpression(Of TResult)(MethodCallExpression, Func(Of IProperty, IQuerySource, TResult))

Inherited from EntityQueryModelVisitor

BindMethodCallExpression(MethodCallExpression, IQuerySource, Func) BindMethodCallExpression(Of TResult)(MethodCallExpression, IQuerySource, Func(Of IProperty, IQuerySource, TResult))

Inherited from EntityQueryModelVisitor

BindMethodCallToValueBuffer(MethodCallExpression, Expression) BindMethodCallToValueBuffer(MethodCallExpression, Expression)

Bind a method call expression to a value buffer access.

(Inherited from RelationalQueryModelVisitor)

BindMethodToOuterQueryParameter(MethodCallExpression) BindMethodToOuterQueryParameter(MethodCallExpression)

BindNavigationPathPropertyExpression(Expression, Func<>, IQuerySource, TResult>) BindNavigationPathPropertyExpression(Of TResult)(Expression, Func(Of IEnumerable(Of 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.

(Inherited from RelationalQueryModelVisitor)

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

Compile a group join inner sequence expression.

(Inherited from RelationalQueryModelVisitor)

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

Compile a join clause inner sequence expression.

(Inherited from RelationalQueryModelVisitor)

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

Compile main from clause expression.

(Inherited from RelationalQueryModelVisitor)

CreateAsyncQueryExecutor(QueryModel) CreateAsyncQueryExecutor(Of TResult)(QueryModel)

Creates an action to asynchronously execute this query.

(Inherited from EntityQueryModelVisitor)

CreateExecutorLambda() 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(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.

(Inherited from RelationalQueryModelVisitor)

IncludeNavigations(QueryModel) IncludeNavigations(QueryModel)

Includes related data requested in the LINQ query.

(Inherited from EntityQueryModelVisitor)

IncludeNavigations(QueryModel, IReadOnlyCollection) IncludeNavigations(QueryModel, IReadOnlyCollection(Of IncludeSpecification))

High-level method called to perform Include compilation.

(Inherited from RelationalQueryModelVisitor)

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.

(Inherited from RelationalQueryModelVisitor)

OptimizeQueryModel(QueryModel) OptimizeQueryModel(QueryModel)

Applies optimizations to the query.

(Inherited from EntityQueryModelVisitor)

RegisterSubQueryVisitor(IQuerySource, RelationalQueryModelVisitor) RegisterSubQueryVisitor(IQuerySource, RelationalQueryModelVisitor)

Registers a sub query visitor.

(Inherited from RelationalQueryModelVisitor)

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(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.

(Inherited from RelationalQueryModelVisitor)

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

Visit an additional from clause.

(Inherited from RelationalQueryModelVisitor)

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

Visit a group join clause.

(Inherited from RelationalQueryModelVisitor)

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

Visit a join clause.

(Inherited from RelationalQueryModelVisitor)

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.

(Inherited from RelationalQueryModelVisitor)

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

Visits nodes.

(Inherited from EntityQueryModelVisitor)

VisitQueryModel(QueryModel) VisitQueryModel(QueryModel)

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 override void VisitQueryModel(QueryModel queryModel)
Public Overrides Sub VisitQueryModel(queryModel As QueryModel)
Parameters
queryModel
QueryModel QueryModel

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

Visit a result operator.

(Inherited from RelationalQueryModelVisitor)

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

Visits nodes.

(Inherited from EntityQueryModelVisitor)

VisitSubQueryModel(QueryModel) VisitSubQueryModel(QueryModel)

Visit a sub-query model.

(Inherited from RelationalQueryModelVisitor)

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

Visit a where clause.

(Inherited from RelationalQueryModelVisitor)

WarnClientEval(Object) WarnClientEval(Object)

Generated a client-eval warning

(Inherited from RelationalQueryModelVisitor)

Properties

ContextOptions ContextOptions

Gets the options for the target context.

(Inherited from RelationalQueryModelVisitor)

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.

(Inherited from RelationalQueryModelVisitor)

Queries Queries

The SelectExpressions active in the current query compilation.

(Inherited from RelationalQueryModelVisitor)

QueriesBySource QueriesBySource

The SelectExpressions for this query, mapped by query source.

(Inherited from RelationalQueryModelVisitor)

QueryCompilationContext QueryCompilationContext

Context for the query compilation.

(Inherited from RelationalQueryModelVisitor)

RequiresClientEval RequiresClientEval

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

(Inherited from RelationalQueryModelVisitor)

RequiresClientFilter RequiresClientFilter

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

(Inherited from RelationalQueryModelVisitor)

RequiresClientJoin RequiresClientJoin

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

(Inherited from RelationalQueryModelVisitor)

RequiresClientOrderBy RequiresClientOrderBy

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

(Inherited from RelationalQueryModelVisitor)

RequiresClientProjection RequiresClientProjection

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

(Inherited from RelationalQueryModelVisitor)

RequiresClientResultOperator RequiresClientResultOperator

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

(Inherited from RelationalQueryModelVisitor)

RequiresClientSelectMany RequiresClientSelectMany

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

(Inherited from RelationalQueryModelVisitor)

Fields

QueryContextParameter QueryContextParameter

Expression to reference the QueryContext parameter for a query.

(Inherited from EntityQueryModelVisitor)