RelationalQueryableMethodTranslatingExpressionVisitor.TranslateLambdaExpression Method

Definition

Translates the given lambda expression for the ShapedQueryExpression source into equivalent SQL representation.

protected virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? TranslateLambdaExpression (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression shapedQueryExpression, System.Linq.Expressions.LambdaExpression lambdaExpression);
abstract member TranslateLambdaExpression : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateLambdaExpression : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Protected Overridable Function TranslateLambdaExpression (shapedQueryExpression As ShapedQueryExpression, lambdaExpression As LambdaExpression) As SqlExpression

Parameters

shapedQueryExpression
ShapedQueryExpression

A ShapedQueryExpression on which the lambda expression is being applied.

lambdaExpression
LambdaExpression

A LambdaExpression to translate into SQL.

Returns

A SqlExpression which is translation of given lambda expression or null.

Applies to