ObjectQuery<T>.Distinct Method ()

 

Limits the query to unique results.

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public ObjectQuery<T> Distinct()

Return Value

Type: System.Data.Entity.Core.Objects.ObjectQuery<T>

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