I\'m using EF 4.3.1... just upgraded to 4.4 (problem remains) with database-first POCO entities generated by the EF 4.x DbContext Generator. I have the following
Today I just find out that q.OrderBy(a=>a.Customer.FirstOrDefault().Name) will not hit database if FirstOrDefault() is inside Sorting Clause.
q.OrderBy(a=>a.Customer.FirstOrDefault().Name)
FirstOrDefault()