DbExpressionBuilder.Distinct(DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建从给定集参数中删除重复项的新 DbDistinctExpression 项。
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
参数
- argument
- DbExpression
一个表达式,用于定义要对其执行非重复操作的集。
返回
一个新的 DbDistinctExpression,表示应用于指定集参数的不同操作。
例外
argument 为 null。
argument 没有集合结果类型。