Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分页的第一页数据量不对 #6

Closed
DaneSpiritGOD opened this issue Feb 14, 2019 · 2 comments
Closed

分页的第一页数据量不对 #6

DaneSpiritGOD opened this issue Feb 14, 2019 · 2 comments
Labels

Comments

@DaneSpiritGOD
Copy link

var list = Enumerable.Range(0, 100);
            var paginableList = list.ToPaginable(20);   
            var page = paginableList.GetPage(1);       

            for (var i = 0; i < page.CurrentPageSize; i++)
            {
                Console.Write($"{page[i].ItemNumber}:{page[i].Value}   ");
                if (i % 10 == 9)
                {
                    Console.WriteLine();
                }
            }

第一页稳定只输出5个数据,而剩下的页输出正常20个……

@alexinea
Copy link
Member

第一页数量异常的原因是构造函数的两个参数传反了 😃 已修正:)

@alexinea
Copy link
Member

已发布 2.0.1

@alexinea alexinea added the bug label Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants