I know about CriteriaTransformer.TransformToRowCount but according to link and my experience it doesn’t work with aggregate functions (and they used quite often). Since I’m writing kinda paging framework for my app it would be very tedious to write “count” query for every data query.
Any ideas how this can be optimized?
I know about CriteriaTransformer.TransformToRowCount but according to link and my experience it doesn’t work
Share
This is not hard:
Where IPagedList is:
and implementation: