Is there a way to find out if an IQueryable OrderBy object is used in its expression tree?
The scenario that I have is that the grid control has paging and sorting per column. However, sorting is not applied by default, so in this case Linq to SQL makes a terribly huge choice for row counting, so in all scenarios I need to provide an order, but I should only use the default order with the primary key if no other order is specified.
So is this possible?
c # linq expression-trees
Grofit
source share