I have a list like this:
Red Red Brown Yellow Green Green Brown Red Orange
I am trying to do a SELECT UNIQUE with LINQ, i.e. I want
Using query comprehension syntax you could achieve the orderby as follows:
var uniqueColors = (from dbo in database.MainTable where dbo.Property orderby dbo.Color.Name ascending select dbo.Color.Name).Distinct();