Share via


ObjectQuery<T>.Distinct Method

Definition

Limits the query to unique results.

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)

Returns

A new ObjectQuery<T> instance that is equivalent to the original instance with SELECT DISTINCT applied.

Applies to