DbExpressionBuilder.Distinct(DbExpression) Metoda

Definicja

Tworzy nowy DbDistinctExpression element, który usuwa duplikaty z danego argumentu zestawu.

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

Wyrażenie definiujące zestaw, dla którego ma być wykonywana odrębna operacja.

Zwraca

Nowa funkcja DbDistinctExpression reprezentująca odrębną operację zastosowaną do określonego argumentu zestawu.

Wyjątki

argument ma wartość null.

argument nie ma typu wyników kolekcji.

Dotyczy