In a previous blog post that uses the X.PAGEDLIST.MVC component to page out an ASP. NET MVC application, you can refer to this essay: ASP. NET MVC uses pagedlist (new renamed X.PAGEDLIST.MVC) paging
But the old X.PAGEDLIST.MVC relies on the. NET Framework version, in order to be able to support the implementation of the ASP. NET core MVC cross-platform, there is no need to install the. NET Framework in ASP. Core. And all of the Controller action methods for ASP. NET Core mvc are async methods by default.
Writing a paging yourself is not a hassle, but the features are certainly not x.pagedlist.mvc.core powerful. This article briefly describes the X.pagedlist.mvc.core for ASP.
The first step: Installing the X.pagedlist.mvc.core package will automatically install the pagedlist. There are three different ways
1th, acquired through NuGet packages. In Visual Stuio 2017, the tools---nuget Package Manager---The NuGet packages in the Management solution---Browse tab--Enter x.pagedlist in the search text box below, or search directly X.pagedlist.mvc.core
2nd: Install in the NuGet Package management Console, enter the dotnet Add package X.pagedlist.mvc.core, automatically install the latest version of the packages and dependencies (currently 7.5.0), dependencies in the solution Manager, You can see the X.pagedlist.mvc.core (7.5.0) package.
3rd type: CLI command-line installation: Dotnet Add package X.pagedlist.mvc.core--version 7.5.0
Step Two: Give an example that actually uses it:
Installation
Talk about using X.PAGEDLIST.MVC paging (ASP. NET Core 2.1)