Sdílet prostřednictvím


DbExpressionBuilder.Distinct(DbExpression) Metoda

Definice

Vytvoří nový DbDistinctExpression , který odebere duplicity z daného argumentu sady.

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

Parametry

argument
DbExpression

Výraz, který definuje sadu, nad kterou se má provést jedinečná operace.

Návraty

Nový DbDistinctExpression představuje jedinečnou operaci použitou na zadaný argument sady.

Výjimky

argument je null.

argument nemá typ výsledku kolekce.

Platí pro