DbExpressionBuilder.Distinct(DbExpression) Metoda

Definice

Vytvoří novou DbDistinctExpression , která odebere duplicity z daného argumentu sady.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbDistinctExpression ^ Distinct(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbDistinctExpression Distinct(this System.Data.Common.CommandTrees.DbExpression argument);
static member Distinct : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbDistinctExpression
<Extension()>
Public Function Distinct (argument As DbExpression) As DbDistinctExpression

Parametry

argument
DbExpression

Výraz, který definuje sadu, pro kterou se má provést samostatná operace.

Návraty

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

Výjimky

argument je null.

argument nemá typ výsledku kolekce.

Platí pro