Paging with PagedList, is it efficient?

后端 未结 7 1472
执念已碎
执念已碎 2020-12-25 14:14

I have been trying to implement paging for quite a while now and I found this tutorial for paging with MVC: ASP.NET MVC Paging Done Perfectly

Now, in this solution,

7条回答
  •  无人及你
    2020-12-25 14:56

    This component (PagedList) works just fine for a large number of records, the first time and each time you select a page it will make 2 calls to the database. One returning the number of records, and the other will return just the records of the page selected. Just make sure you don't call the ToList() method

提交回复
热议问题