Partager via


RelationalQueryableMethodTranslatingExpressionVisitor.TranslateExpression Method

Definition

Overloads

TranslateExpression(Expression)

Translates the given expression into equivalent SQL representation.

TranslateExpression(Expression, Boolean)

Translates the given expression into equivalent SQL representation.

TranslateExpression(Expression)

Source:
RelationalQueryableMethodTranslatingExpressionVisitor.cs

Translates the given expression into equivalent SQL representation.

protected virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? TranslateExpression (System.Linq.Expressions.Expression expression);
abstract member TranslateExpression : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateExpression : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Protected Overridable Function TranslateExpression (expression As Expression) As SqlExpression

Parameters

expression
Expression

An expression to translate.

Returns

A SqlExpression which is translation of given expression or null.

Applies to

TranslateExpression(Expression, Boolean)

Source:
RelationalQueryableMethodTranslatingExpressionVisitor.cs
Source:
RelationalQueryableMethodTranslatingExpressionVisitor.cs

Translates the given expression into equivalent SQL representation.

protected virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? TranslateExpression (System.Linq.Expressions.Expression expression, bool applyDefaultTypeMapping = true);
abstract member TranslateExpression : System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateExpression : System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Protected Overridable Function TranslateExpression (expression As Expression, Optional applyDefaultTypeMapping As Boolean = true) As SqlExpression

Parameters

expression
Expression

An expression to translate.

applyDefaultTypeMapping
Boolean

Whether to apply the default type mapping on the top-most element if it has none. Defaults to true.

Returns

A SqlExpression which is translation of given expression or null.

Applies to