I have been using EntityQueryPagedCollectionView in DevForce 2010 and am now changing it over to EntityQueryPager in DevForce 2012.
I have a rather complex sort expression (One that relyes on a ServerSide Function)
The current code looks like this
enq = enq.OrderBy(x => MySqlLinqFunctions.CacheField(x.Cache, SortFieldIdx));
where enq is the query that selects the records from the databse and here I add the OrderBy clause to it.
MySquLinqFunction is a server side function.
In DevForce 2012 I have to use a SortSelector for my EntityQueryPager
Can you please give me a hint how to do this?
I probably should use the constructor
But I have no Idea what is meant with string MethodName (1st parameter)
Would I pass x => MySqlLinqFunctions.CacheField(x.Cache, SortFieldIdx) as the second parameter?
Thank you
Markus Seeli