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)

返回

一个新的 ObjectQuery<T> 实例,等效于应用了 SELECT DISTINCT 的原始实例。

适用于