语言

ObjectQuery<T>.Distinct 方法

定义

将查询限制为唯一的结果。

public System.Data.Entity.Core.Objects.ObjectQuery<T> Distinct();
member this.Distinct : unit -> System.Data.Entity.Core.Objects.ObjectQuery<'T>
Public Function Distinct () As ObjectQuery(Of T)

返回

与应用 SELECT DISTINCT 的原始实例等效的新 ObjectQuery<T> 实例。

适用于