Sample solution that answers one very popular question: how to build data paging support to my .NET application?
Sample solution contains the following examples:
- Pager classes for data and presentation layer
- EF Core extension methods for paged data (IQueryable)
- NHibernate extensions methods for paged data (LINQ, ICriteria, QueryOver)
- Extension methods for pages data with AutoMapper mapping
- ASP.NET Core 2.2 web application (Entity Framework Core, NHibernate)
- ASP.NET MVC (Entity Framework)
- Pager view component, tag helper and partial view
- Database script for SQL Server
NHibernate samples are included in DotNetPaging.AspNetCore project.
More about my work on ASP.NET/ASP.NET Core paging can be found in these blog posts:
- Building pager view component (Gunnar Peipman)
- Building pager tag helper (Gunnar Peipman)
- Paging with Entity Framework Core (Gunnar Peipman)
- Returning paged results from repositories using PagedResult (Gunnar Peipman)