SqlNullabilityProcessor.VisitDistinct Method

Definition

Visits a DistinctExpression and computes its nullability.

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

Parameters

distinctExpression
DistinctExpression

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