PaginableCollections Hit 1K Downloads

Over the summer, PaginableCollections met a significant milestone - over one thousand downloads!

I want to take a moment to say thank you to everyone that finds value in this project!

1xc6t3

What is PaginableCollections?

PaginableCollections is a set of abstractions and extensions used to provide developers with a consistent way to paginate their data across all .NET (and .NET Core) application stacks.

PaginableCollections works with any collection that implements IEnumerable or IQueryable. When you pair it with EntityFramework or EntityFramework Core, the pagination occurs on the database!

Here is an example using a static dataset:

var numbers = new int[] { 2, 4, 5, 1, 6, 8, 2, 0, 4, 3, 4, 1, 5, 9, 7, 0, 2, 4, 8, 9 };

var pageNumber = 2;
var itemCountPerPage = 6;

var paginable = numbers.ToPaginable(pageNumber, itemCountPerPage);

foreach(var t in paginable)
{
    Console.WriteLine($"{t.ItemNumber}, {t.Item}");
}

The console output looks like this:

//output
1, 2
2, 0
3, 4
4, 3
5, 4 
6, 1

Interested? Use the links below to find out more information.

Fifteen minutes of fame:

Enjoy!

Show Comments