How can I do this SQL query with Entity Framework?
SQL
Entity Framework
SELECT DISTINCT NAME FROM TestAddresses
The way that @alliswell showed is completely valid, and there's another way! :)
var result = EFContext.TestAddresses .GroupBy(ta => ta.Name) .Select(ta => ta.Key);
I hope it'll be useful to someone.