I need to page records but I don't know the Entity's fields. Any way to OrderBy the Key (whatever it is) or simply specify some default OrderBy Lambda?
For example, I can do this with the Where Clause without knowing the Entity's properties:
var myRecords = DC.Products.Where( p => p);
This is a case where the Skip and Take require an OrderBy, but I don't know the Entity's Key fields.
EDIT:
When I don't have OrderBy() when using Skip().Take(), I get this error:
The method 'Skip' is only supported for sorted input in LINQ to Entities.
The method 'OrderBy' must be called before the method 'Skip'.