{"id":20138510,"url":"https://github.com/thiagobarradas/pagedlist-netcore","last_synced_at":"2026-05-12T06:38:22.125Z","repository":{"id":94891785,"uuid":"113939087","full_name":"ThiagoBarradas/pagedlist-netcore","owner":"ThiagoBarradas","description":"Paged list for dotnet core applications","archived":false,"fork":false,"pushed_at":"2018-08-21T02:59:31.000Z","size":354,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T10:08:50.863Z","etag":null,"topics":["dotnet","dotnet-core","dotnet-core2","list","paged","pagedlist","pagination","paging"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThiagoBarradas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-12T03:34:29.000Z","updated_at":"2019-03-26T03:28:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc253f06-6604-4665-9ac9-37f38ec8c0b3","html_url":"https://github.com/ThiagoBarradas/pagedlist-netcore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiagoBarradas%2Fpagedlist-netcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiagoBarradas%2Fpagedlist-netcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiagoBarradas%2Fpagedlist-netcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiagoBarradas%2Fpagedlist-netcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThiagoBarradas","download_url":"https://codeload.github.com/ThiagoBarradas/pagedlist-netcore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582552,"owners_count":19985845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","dotnet-core","dotnet-core2","list","paged","pagedlist","pagination","paging"],"created_at":"2024-11-13T21:38:30.982Z","updated_at":"2026-05-12T06:38:22.066Z","avatar_url":"https://github.com/ThiagoBarradas.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/ljmbe0qjtiy7ixx7/branch/master?svg=true)](https://ci.appveyor.com/project/ThiagoBarradas/pagedlist-netcore/branch/master)\n[![codecov](https://codecov.io/gh/ThiagoBarradas/pagedlist-netcore/branch/master/graph/badge.svg)](https://codecov.io/gh/ThiagoBarradas/pagedlist-netcore)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/PagedList.NetCore.svg)](https://www.nuget.org/packages/PagedList.NetCore/)\n[![NuGet Version](https://img.shields.io/nuget/v/PagedList.NetCore.svg)](https://www.nuget.org/packages/PagedList.NetCore/)\n\n# PagedList \n\nPaged list for .NET applications\n\n# Utilization with basic navigation\n\n## Create new pagination object \n\n```csharp\n\nstring originUrl = \"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=5\";\n\nint itemCount = 347;\n\nint pageSize = 10;\n\nint pageNumber = 5;\n\nPagedList pagedList = new PagedList(originUrl, itemCount, pageNumber, pageSize);\n\n```\n\n## Object structure\n\n```json\n{\n\t\"options\" : {\n\t\t\"pageNumber\" : 5,\n\t\t\"pageSize\" : 10,\n\t\t\"itemCount\" : 347,\n\t\t\"pageCount\" : 35\n\t},\n\t\"navigator\" : {\n\t\t\"navigatorSize\" : null,\n\t\t\"first\" : {\n\t\t\t\"url\" : \"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=1\",\n\t\t\t\"number\" : 1\n\t\t},\n\t\t\"previous\" : {\n\t\t\t\"url\" : \"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=4\",\n\t\t\t\"number\" : 4\n\t\t},\n\t\t\"next\" : {\n\t\t\t\"url\" : \"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=6\",\n\t\t\t\"number\" : 6\n\t\t},\n\t\t\"last\" : {\n\t\t\t\"url\" : \"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=35\",\n\t\t\t\"number\" : 35\n\t\t},\n\t\t\"numerics\" : null\n\t}\n}\n```\n\n# Utilization with basic and numeric navigation\n\n## Create new pagination object\n\n```csharp\n\nstring originUrl = \"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=5\";\n\nint itemCount = 347;\n\nint pageSize = 10;\n\nint pageNumber = 5;\n\nint navigatorSize = 10;\n\nPagedList pagedList = new PagedList(originUrl, itemCount, pageNumber, pageSize, navigatorSize);\n\n```\n\n## Object structure\n\n```json\n{  \n   \"options\":{  \n      \"pageNumber\":5,\n      \"pageSize\":10,\n      \"itemCount\":347,\n      \"pageCount\":35\n   },\n   \"navigator\":{  \n      \"navigatorSize\":10,\n      \"first\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=1\",\n         \"number\":1\n      },\n      \"previous\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=4\",\n         \"number\":4\n      },\n      \"next\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123=123\u0026pageSize=10\u0026pageNumber=6\",\n         \"number\":6\n      },\n      \"last\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=35\",\n         \"number\":35\n      },\n      \"numerics\":[  \n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=1\",\n            \"number\":1\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=2\",\n            \"number\":2\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=3\",\n            \"number\":3\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=4\",\n            \"number\":4\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=5\",\n            \"number\":5\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=6\",\n            \"number\":6\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=7\",\n            \"number\":7\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=8\",\n            \"number\":8\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=9\",\n            \"number\":9\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=10\",\n            \"number\":10\n         }\n      ]\n   }\n}\n```\n\n# Some response samples\n\nFor this examples, the numeric navigator is defined as 3.\n\n## Current page is the first\n\n```json\n{  \n   \"options\":{  \n      \"pageNumber\":1,\n      \"pageSize\":10,\n      \"itemCount\":347,\n      \"pageCount\":35\n   },\n   \"navigator\":{  \n      \"navigatorSize\":3,\n      \"first\":null,\n      \"previous\":null,\n      \"next\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=2\",\n         \"number\":2\n      },\n      \"last\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=35\",\n         \"number\":35\n      },\n      \"numerics\":[  \n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=1\",\n            \"number\":1\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=2\",\n            \"number\":2\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=3\",\n            \"number\":3\n         }\n      ]\n   }\n}\n```\n\n## Current page is the last\n\n```json\n{  \n   \"options\":{  \n      \"pageNumber\":35,\n      \"pageSize\":10,\n      \"itemCount\":347,\n      \"pageCount\":35\n   },\n   \"navigator\":{  \n      \"navigatorSize\":3,\n      \"first\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=1\",\n         \"number\":1\n      },\n      \"previous\":{  \n         \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=34\",\n         \"number\":34\n      },\n      \"next\":null,\n      \"last\":null,\n      \"numerics\":[  \n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=33\",\n            \"number\":33\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=34\",\n            \"number\":34\n         },\n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=35\",\n            \"number\":35\n         }\n      ]\n   }\n}\n```\n\n## One item to show - Single page \n\n```json\n{  \n   \"options\":{  \n      \"pageNumber\":1,\n      \"pageSize\":10,\n      \"itemCount\":10,\n      \"pageCount\":1\n   },\n   \"navigator\":{  \n      \"navigatorSize\":3,\n      \"first\":null,\n      \"previous\":null,\n      \"next\":null,\n      \"last\":null,\n      \"numerics\":[  \n         {  \n            \"url\":\"http://www.myapp.com/list?filterA=xyz\u0026filterB=123\u0026pageSize=10\u0026pageNumber=1\",\n            \"number\":1\n         }\n      ]\n   }\n}\n```\n\n## Zero items to show\n\n```json\n{  \n   \"options\":{  \n      \"pageNumber\":1,\n      \"pageSize\":10,\n      \"itemCount\":0,\n      \"pageCount\":0\n   },\n   \"navigator\":{  \n      \"navigatorSize\":3,\n      \"first\":null,\n      \"previous\":null,\n      \"next\":null,\n      \"last\":null,\n      \"numerics\":null\n   }\n}\n```\n\n# How can I contribute?\nPlease, refer to [CONTRIBUTING](CONTRIBUTING.md)\n\n# Found something strange or need a new feature?\nOpen a new Issue following our issue template [ISSUE-TEMPLATE](ISSUE-TEMPLATE.md)\n\n# Changelog\nSee in [nuget version history](https://www.nuget.org/packages/PagedList.NetCore)\n\n### Did you like it? Please, make a donate :)\n\nif you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.\n\nBTC Wallet: `1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX`\n\n![1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX](https://i.imgur.com/mN7ueoE.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagobarradas%2Fpagedlist-netcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagobarradas%2Fpagedlist-netcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagobarradas%2Fpagedlist-netcore/lists"}