RelationalTypeMappingPostprocessor Class

Definition

A visitor executed after translation, which verifies that all SqlExpression nodes have a type mapping, and applies type mappings inferred for queryable constants (VALUES) and parameters (e.g. OPENJSON) back on their root tables.

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalTypeMappingPostprocessor : System.Linq.Expressions.ExpressionVisitor
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalTypeMappingPostprocessor = class
    inherit ExpressionVisitor
Public Class RelationalTypeMappingPostprocessor
Inherits ExpressionVisitor
Inheritance
RelationalTypeMappingPostprocessor
Attributes

Constructors

Name Description
RelationalTypeMappingPostprocessor(QueryTranslationPostprocessorDependencies, RelationalQueryTranslationPostprocessorDependencies, RelationalQueryCompilationContext)

A visitor executed after translation, which verifies that all SqlExpression nodes have a type mapping, and applies type mappings inferred for queryable constants (VALUES) and parameters (e.g. OPENJSON) back on their root tables.

Properties

Name Description
Dependencies

Parameter object containing dependencies for this class.

QueryCompilationContext

The query compilation context object to use.

RelationalDependencies

Parameter object containing relational dependencies for this class.

Methods

Name Description
ApplyTypeMappingsOnValuesExpression(ValuesExpression, Boolean)

Applies the given type mappings to the values projected out by the given ValuesExpression. As an optimization, it can also strip the first _ord column if it's determined that it isn't needed (most cases).

ApplyTypeMappingsOnValuesExpression(ValuesExpression)

Applies the given type mappings to the values projected out by the given ValuesExpression. As an optimization, it can also strip the first _ord column if it's determined that it isn't needed (most cases).

Process(Expression)

Processes type mappings in the expression tree.

TryGetInferredTypeMapping(String, String, RelationalTypeMapping)

Attempts to find an inferred type mapping for the given table column.

VisitExtension(Expression)

Visits the children of the extension expression.

Applies to