I have a LINQ expression like
var a = ctx.EntitySet
.OrderByDescending(t => t.Property)
.Skip(pageIndex * size)
.Take(size);
OrderBy () should call before Skip () and Take (), but sorting happens at the end. Can I solve this problem?
Sorry, many people did not understand my question. The request is executed without errors, but I want to
//It is I want
1) Sorting ALL data
2) Use Skip() and Take()
What do I have as a result, if I like in my example: 1) Skip () 2) Take () 3) Sort only the worked out elements!
source
share