SqlNullabilityProcessor.VisitSqlParameter Method

Definition

Visits a SqlParameterExpression and computes its nullability.

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

Parameters

sqlParameterExpression
SqlParameterExpression

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