RelationalQueryableMethodTranslatingExpressionVisitor.RelationalInferredTypeMappingApplier Class

Definition

A visitor executed at the end of 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.

protected class RelationalQueryableMethodTranslatingExpressionVisitor.RelationalInferredTypeMappingApplier : System.Linq.Expressions.ExpressionVisitor
Protected Class RelationalQueryableMethodTranslatingExpressionVisitor.RelationalInferredTypeMappingApplier
Inherits ExpressionVisitor
Inheritance
RelationalQueryableMethodTranslatingExpressionVisitor.RelationalInferredTypeMappingApplier

Constructors

RelationalQueryableMethodTranslatingExpressionVisitor.RelationalInferredTypeMappingApplier(IModel, ISqlExpressionFactory, IReadOnlyDictionary<ValueTuple<TableExpressionBase, String>,RelationalTypeMapping>)

Creates a new instance of the RelationalQueryableMethodTranslatingExpressionVisitor.RelationalInferredTypeMappingApplier class.

Properties

Model

The model.

Methods

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

TryGetInferredTypeMapping(TableExpressionBase, 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