Partilhar via


RelationalSqlTranslatingExpressionVisitor.Translate Method

Definition

Overloads

Translate(Expression, Boolean)

Translates an expression to an equivalent SQL representation.

Translate(Expression)

Translates an expression to an equivalent SQL representation.

Translate(Expression, Boolean)

Source:
RelationalSqlTranslatingExpressionVisitor.cs
Source:
RelationalSqlTranslatingExpressionVisitor.cs

Translates an expression to an equivalent SQL representation.

public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? Translate (System.Linq.Expressions.Expression expression, bool applyDefaultTypeMapping = true);
abstract member Translate : System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.Translate : System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function Translate (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 SQL translation of the given expression.

Applies to

Translate(Expression)

Source:
RelationalSqlTranslatingExpressionVisitor.cs
Source:
RelationalSqlTranslatingExpressionVisitor.cs
Source:
RelationalSqlTranslatingExpressionVisitor.cs
Source:
RelationalSqlTranslatingExpressionVisitor.cs
Source:
RelationalSqlTranslatingExpressionVisitor.cs

Translates an expression to an equivalent SQL representation.

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

Parameters

expression
Expression

An expression to translate.

Returns

A SQL translation of the given expression.

Applies to