Share via


SqlNullabilityProcessor.VisitLike(LikeExpression, Boolean, Boolean) Method

Definition

Visits a LikeExpression and computes its nullability.

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

Parameters

likeExpression
LikeExpression

A like 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