Share via


RelationalQueryableMethodTranslatingExpressionVisitor.ApplyInferredTypeMappings Method

Definition

Invoked at the end of top-level translation, applies inferred type mappings for queryable constants/parameters and verifies that all SqlExpression have a type mapping.

protected virtual System.Linq.Expressions.Expression ApplyInferredTypeMappings (System.Linq.Expressions.Expression expression, System.Collections.Generic.IReadOnlyDictionary<(Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, string),Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping?> inferredTypeMappings);
abstract member ApplyInferredTypeMappings : System.Linq.Expressions.Expression * System.Collections.Generic.IReadOnlyDictionary<ValueTuple<Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, string>, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping> -> System.Linq.Expressions.Expression
override this.ApplyInferredTypeMappings : System.Linq.Expressions.Expression * System.Collections.Generic.IReadOnlyDictionary<ValueTuple<Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, string>, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping> -> System.Linq.Expressions.Expression
Protected Overridable Function ApplyInferredTypeMappings (expression As Expression, inferredTypeMappings As IReadOnlyDictionary(Of ValueTuple(Of TableExpressionBase, String), RelationalTypeMapping)) As Expression

Parameters

expression
Expression

The query expression to process.

inferredTypeMappings
IReadOnlyDictionary<ValueTuple<TableExpressionBase,String>,RelationalTypeMapping>

Inferred type mappings for queryable constants/parameters collected during translation. These will be applied to the appropriate nodes in the tree.

Returns

Applies to