RelationalEntityQueryableExpressionVisitor RelationalEntityQueryableExpressionVisitor Class

Definition

A visitor that performs basic relational query translation of EF query roots.

public class RelationalEntityQueryableExpressionVisitor : EntityQueryableExpressionVisitor
Public Class RelationalEntityQueryableExpressionVisitor
    Inherits EntityQueryableExpressionVisitor
Inheritance
System.ObjectSystem.Object
RelationalEntityQueryableExpressionVisitorRelationalEntityQueryableExpressionVisitor

Inherited Members

Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.EntityQueryableExpressionVisitor

VisitConstant(System.Linq.Expressions.ConstantExpression)VisitConstant(System.Linq.Expressions.ConstantExpression)

Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.DefaultQueryExpressionVisitor

Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.ExpressionVisitorBase

Visit(System.Linq.Expressions.Expression)Visit(System.Linq.Expressions.Expression)
VisitExtension(System.Linq.Expressions.Expression)VisitExtension(System.Linq.Expressions.Expression)

Constructors

RelationalEntityQueryableExpressionVisitor(IModel, ISelectExpressionFactory, IMaterializerFactory, IShaperCommandContextFactory, IRelationalAnnotationProvider, RelationalQueryModelVisitor, IQuerySource) RelationalEntityQueryableExpressionVisitor(IModel, ISelectExpressionFactory, IMaterializerFactory, IShaperCommandContextFactory, IRelationalAnnotationProvider, RelationalQueryModelVisitor, IQuerySource)

Creates a new instance of RelationalEntityQueryableExpressionVisitor.

public RelationalEntityQueryableExpressionVisitor(IModel model, ISelectExpressionFactory selectExpressionFactory, IMaterializerFactory materializerFactory, IShaperCommandContextFactory shaperCommandContextFactory, IRelationalAnnotationProvider relationalAnnotationProvider, RelationalQueryModelVisitor queryModelVisitor, IQuerySource querySource)
Public Sub New(model As IModel, selectExpressionFactory As ISelectExpressionFactory, materializerFactory As IMaterializerFactory, shaperCommandContextFactory As IShaperCommandContextFactory, relationalAnnotationProvider As IRelationalAnnotationProvider, queryModelVisitor As RelationalQueryModelVisitor, querySource As IQuerySource)
Parameters
model
IModel IModel

The model.

selectExpressionFactory
ISelectExpressionFactory ISelectExpressionFactory

The select expression factory.

materializerFactory
IMaterializerFactory IMaterializerFactory

The materializer factory.

shaperCommandContextFactory
IShaperCommandContextFactory IShaperCommandContextFactory

The shaper command context factory.

relationalAnnotationProvider
IRelationalAnnotationProvider IRelationalAnnotationProvider

The relational annotation provider.

queryModelVisitor
RelationalQueryModelVisitor RelationalQueryModelVisitor

The query model visitor.

querySource
IQuerySource IQuerySource

The query source.

Methods

VisitEntityQueryable(Type) VisitEntityQueryable(Type)

Visit an entity query root.

protected override Expression VisitEntityQueryable(Type elementType)
Protected Overrides Function VisitEntityQueryable(elementType As Type) As Expression
Parameters
elementType
System.Type System.Type

The CLR type of the entity root.

Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

An Expression corresponding to the translated entity root.

Overrides

VisitMember(MemberExpression) VisitMember(MemberExpression)

Visit a member expression.

protected override Expression VisitMember(MemberExpression node)
Protected Overrides Function VisitMember(node As MemberExpression) As Expression
Parameters
node
System.Linq.Expressions.MemberExpression System.Linq.Expressions.MemberExpression

The expression to visit.

Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

An Expression corresponding to the translated member.

VisitMethodCall(MethodCallExpression) VisitMethodCall(MethodCallExpression)

Visit a method call expression.

protected override Expression VisitMethodCall(MethodCallExpression node)
Protected Overrides Function VisitMethodCall(node As MethodCallExpression) As Expression
Parameters
node
System.Linq.Expressions.MethodCallExpression System.Linq.Expressions.MethodCallExpression

The expression to visit.

Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

An Expression corresponding to the translated method call.

VisitSubQuery(SubQueryExpression) VisitSubQuery(SubQueryExpression)

Visit a sub-query expression.

protected override Expression VisitSubQuery(SubQueryExpression expression)
Protected Overrides Function VisitSubQuery(expression As SubQueryExpression) As Expression
Parameters
expression
SubQueryExpression SubQueryExpression

The expression.

Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

An Expression corresponding to the translated sub-query.