SqlNullabilityProcessor.VisitSqlConstant Method

Definition

Visits a SqlConstantExpression and computes its nullability.

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

Parameters

sqlConstantExpression
SqlConstantExpression

A sql constant 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