ÞÄTRÏÇK ÞÄTRÏÇK - 11 months ago 131
C# Question

Entity Framework select distinct name

How can I do this SQL query with Entity Framework?

SELECT DISTINCT NAME FROM TestAddresses

Answer Source

Using lambda expression..

 var result = EFContext.TestAddresses.Select(m => m.Name).Distinct();