Share via


RelationalQueryRootProcessor Class

Definition

A visitor which adds additional query root nodes during preprocessing.

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalQueryRootProcessor : Microsoft.EntityFrameworkCore.Query.QueryRootProcessor
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalQueryRootProcessor = class
    inherit QueryRootProcessor
Public Class RelationalQueryRootProcessor
Inherits QueryRootProcessor
Inheritance
RelationalQueryRootProcessor
Attributes

Constructors

Name Description
RelationalQueryRootProcessor(QueryTranslationPreprocessorDependencies, RelationalQueryTranslationPreprocessorDependencies, QueryCompilationContext)

Creates a new instance of the RelationalQueryRootProcessor class.

Methods

Name Description
ShouldConvertToInlineQueryRoot(Expression)

Indicates that a Expression can be converted to a InlineQueryRootExpression; the latter will end up in TranslateInlineQueryRoot(InlineQueryRootExpression) for translation to a SQL ValuesExpression.

ShouldConvertToInlineQueryRoot(NewArrayExpression)

Indicates that a ConstantExpression can be converted to a InlineQueryRootExpression; the latter will end up in VisitInlineQueryRoot(InlineQueryRootExpression) for translation to a SQL ValuesExpression.

ShouldConvertToParameterQueryRoot(ParameterExpression)

Indicates that a ParameterExpression can be converted to a ParameterQueryRootExpression; the latter will end up in TranslatePrimitiveCollection(SqlExpression, IProperty, String) for translation to a provider-specific SQL expansion mechanism, e.g. OPENJSON on SQL Server.

ShouldConvertToParameterQueryRoot(QueryParameterExpression)

Indicates that a QueryParameterExpression can be converted to a ParameterQueryRootExpression; the latter will end up in TranslatePrimitiveCollection(SqlExpression, IProperty, String) for translation to a provider-specific SQL expansion mechanism, e.g. OPENJSON on SQL Server.

VisitExtension(Expression)

Visits the children of the extension expression.

VisitMethodCall(MethodCallExpression)

Visits the children of the MethodCallExpression.

Applies to