DbExpressionBuilder.Distinct(DbExpression) Method

Definition

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

public static System.Data.Entity.Core.Common.CommandTrees.DbDistinctExpression Distinct (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member Distinct : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbDistinctExpression
<Extension()>
Public Function Distinct (argument As DbExpression) As DbDistinctExpression

Parameters

argument
DbExpression

An expression that defines the set over which to perfom 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