SqlNullabilityProcessor.VisitCase(CaseExpression, Boolean, Boolean) Method

Definition

Visits a CaseExpression and computes its nullability.

protected virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression VisitCase (Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression caseExpression, bool allowOptimizedExpansion, out bool nullable);
abstract member VisitCase : Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression * bool * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.VisitCase : Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression * bool * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Protected Overridable Function VisitCase (caseExpression As CaseExpression, allowOptimizedExpansion As Boolean, ByRef nullable As Boolean) As SqlExpression

Parameters

caseExpression
CaseExpression

A case expression to visit.

allowOptimizedExpansion
Boolean

A bool value indicating if optimized expansion which considers null value as false value is allowed.

nullable
Boolean

A bool value indicating whether the sql expression is nullable.

Returns

An optimized sql expression.

Applies to