Minimal paging model and extensions for .NET Core projects
- PageModel: Paging model, linq-y format with skip & take integers.
- PagedResult: Generic model for results with paging, provides a T generic Result and an Total of available results.
- HttpRequestExtensions: Extension to extract a PageModel instance from the query parameters of an HttpRequest object.
- IQueryableExtensions: Extension to apply the values from a PageModel instance to any IQueryable.
*Both extensions default to 0 if any value is missing. ** Query parameters names are harcoded to "skip" and "take" all lowercase characters.