DbExpressionBuilder.Distinct(DbExpression) Method

Definition

Creates a new DbDistinctExpression that removes duplicates from the given set argument.

public static System.Data.Common.CommandTrees.DbDistinctExpression Distinct (this System.Data.Common.CommandTrees.DbExpression argument);

Parameters

argument
DbExpression

An expression that defines the set over which to perform the distinct operation.

Returns

A new DbDistinctExpression that represents the distinct operation applied to the specified set argument.

Exceptions

argument is null.

argument does not have a collection result type.

Applies to

Produkt Versjoner
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1