Partilhar via


QuerySqlGenerator.VisitCase(CaseExpression) Method

Definition

Generates SQL for a CASE clause CASE/WHEN construct.

protected override System.Linq.Expressions.Expression VisitCase (Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression caseExpression);
override this.VisitCase : Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression -> System.Linq.Expressions.Expression
Protected Overrides Function VisitCase (caseExpression As CaseExpression) As Expression

Parameters

caseExpression
CaseExpression

The CaseExpression for which to generate SQL.

Returns

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

Applies to