C# 常用分页

                    var num = TCalcPager.CalcPageCount(addList.Count, TDefautValue.PageSize);
                    for (int i = 0; i < num; i++)
                    {
                        var resultList = addList.Skip(i * TDefautValue.PageSize).Take(TDefautValue.PageSize).ToList();
                      
                    }

 

posted @ 2016-05-31 15:47  b̶i̶n̶g̶.̶  阅读(147)  评论(1编辑  收藏  举报