RelationalSqlTranslatingExpressionVisitor.Translate 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.
Overloads
Translate(Expression) |
Translates an expression to an equivalent SQL representation. |
Translate(Expression, Boolean) |
Translates an expression to an equivalent SQL representation. |
Translate(Expression)
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
Translate(Expression, Boolean)
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
Entity Framework