DbExpressionBuilder.Distinct(DbExpression) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un nouveau DbDistinctExpression qui supprime les doublons de l’argument set donné.
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
Paramètres
- argument
- DbExpression
Expression qui définit l’ensemble sur lequel effectuer l’opération distincte.
Retours
Nouvelle DbDistinctExpression qui représente l’opération distincte appliquée à l’argument set spécifié.
Exceptions
argument a la valeur null.
argument n’a pas de type de résultat de collection.