RelationalQueryableMethodTranslatingExpressionVisitor.TranslateLambdaExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.