I've a very simple LINQ query to select dates from a table column - and I want to order by the date values:
var allDates = db.Table1.Select(m => m.Date).OrderBy(m => m.Date).Distinct();
But during runtime, I get the exception
"The specified type member 'Date' is not supported in LINQ to Entities."
In the model and the database, date-field is of type "DateTime". Selecting the values without ordering works fine.