Skip to content

Commit b156b88

Browse files
committed
Migrate X.Web.PagedList to X.PagedList.Mvc.Core
1 parent ff38d51 commit b156b88

25 files changed

+43
-48
lines changed

examples/Example.Website/Areas/Internal/Views/Admin/Index.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@model IPagedList<string>
22

33
@using X.PagedList;
4-
@using X.Web.PagedList
4+
@using X.PagedList.Mvc.Core
55

66
@{
77
ViewBag.Title = "Internal Admin Product Listing";

examples/Example.Website/Example.Website.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ItemGroup>
99
<ProjectReference Include="..\..\src\X.Extensions.PagedList.EF\X.Extensions.PagedList.EF.csproj" />
1010
<ProjectReference Include="..\..\src\X.PagedList\X.PagedList.csproj"/>
11-
<ProjectReference Include="..\..\src\X.Web.PagedList\X.Web.PagedList.csproj" />
11+
<ProjectReference Include="..\..\src\X.PagedList.Mvc.Core\X.PagedList.Mvc.Core.csproj" />
1212
<ProjectReference Include="..\Example.DAL\Example.DAL.csproj"/>
1313
</ItemGroup>
1414

examples/Example.Website/Views/Bootstrap41/Index.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55

66
@using X.PagedList;
7-
@using X.Web.PagedList
7+
@using X.PagedList.Mvc.Core
88
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
99

1010
<!-- import the included stylesheet for some (very basic) default styling -->

examples/Example.Website/Views/EF/Index.cshtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
}
55

66
@using X.PagedList;
7-
@using X.Web.PagedList
8-
@using X.Web.PagedList.Fluent
7+
@using X.PagedList.Mvc.Core
8+
@using X.PagedList.Mvc.Core.Fluent
99
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
1010

1111

examples/Example.Website/Views/Home/Index.cshtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
}
55

66
@using X.PagedList;
7-
@using X.Web.PagedList
8-
@using X.Web.PagedList.Fluent
7+
@using X.PagedList.Mvc.Core
8+
@using X.PagedList.Mvc.Core.Fluent
99
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
1010

1111

examples/Example.Website/Views/Shared/Paging/_Pager.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@using System.Text
2-
@using X.Web.PagedList
2+
@using X.PagedList.Mvc.Core
33

44
@model X.PagedList.IPagedList
55

examples/Example.Website/Views/Shared/Paging/_Pager_85.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@using System.Text
2-
@using X.Web.PagedList
2+
@using X.PagedList.Mvc.Core
33

44
@model X.PagedList.IPagedList
55

src/X.Web.PagedList/AjaxOptions.cs src/X.PagedList.Mvc.Core/AjaxOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22

3-
namespace X.Web.PagedList;
3+
namespace X.PagedList.Mvc.Core;
44

55
public class AjaxOptions
66
{

src/X.Web.PagedList/Fluent/HtmlPagerBuilder.cs src/X.PagedList.Mvc.Core/Fluent/HtmlPagerBuilder.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
22
using Microsoft.AspNetCore.Html;
33
using Microsoft.AspNetCore.Mvc.Rendering;
4-
using X.PagedList;
54

6-
namespace X.Web.PagedList.Fluent;
5+
namespace X.PagedList.Mvc.Core.Fluent;
76

87
internal sealed class HtmlPagerBuilder : IHtmlPagerBuilder
98
{

src/X.Web.PagedList/Fluent/HtmlPagerExtensions.cs src/X.PagedList.Mvc.Core/Fluent/HtmlPagerExtensions.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
using JetBrains.Annotations;
33
using Microsoft.AspNetCore.Html;
44
using Microsoft.AspNetCore.Mvc.Rendering;
5-
using X.PagedList;
65

7-
namespace X.Web.PagedList.Fluent;
6+
namespace X.PagedList.Mvc.Core.Fluent;
87

98
[PublicAPI]
109
public static class HtmlPagerExtensions

src/X.Web.PagedList/Fluent/IHtmlPagerBuilder.cs src/X.PagedList.Mvc.Core/Fluent/IHtmlPagerBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using JetBrains.Annotations;
33
using Microsoft.AspNetCore.Html;
44

5-
namespace X.Web.PagedList.Fluent;
5+
namespace X.PagedList.Mvc.Core.Fluent;
66

77
[PublicAPI]
88
public interface IHtmlPagerBuilder

src/X.Web.PagedList/GoToFormRenderOptions.cs src/X.PagedList.Mvc.Core/GoToFormRenderOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace X.Web.PagedList;
1+
namespace X.PagedList.Mvc.Core;
22

33
///<summary>
44
/// Options for configuring the output of <see cref = "HtmlHelper" />.

src/X.Web.PagedList/HtmlHelper.cs src/X.PagedList.Mvc.Core/HtmlHelper.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
using System.Linq;
55
using System.Text;
66
using Microsoft.AspNetCore.Mvc.Rendering;
7-
using X.PagedList;
87

9-
namespace X.Web.PagedList;
8+
namespace X.PagedList.Mvc.Core;
109

1110
public class HtmlHelper
1211
{

src/X.Web.PagedList/HtmlHelperExtension.cs src/X.PagedList.Mvc.Core/HtmlHelperExtension.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
using JetBrains.Annotations;
44
using Microsoft.AspNetCore.Html;
55
using Microsoft.AspNetCore.Mvc.Rendering;
6-
using X.PagedList;
76

8-
namespace X.Web.PagedList;
7+
namespace X.PagedList.Mvc.Core;
98

109
///<summary>
1110
/// Extension methods for generating paging controls that can operate on instances of IPagedList.

src/X.Web.PagedList/ItemSliceAndTotalPosition.cs src/X.PagedList.Mvc.Core/ItemSliceAndTotalPosition.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace X.Web.PagedList;
1+
namespace X.PagedList.Mvc.Core;
22

33
/// <summary>
44
/// A two-state enum that controls the position of ItemSliceAndTotal text within PagedList items.

src/X.Web.PagedList/PagedListDisplayMode.cs src/X.PagedList.Mvc.Core/PagedListDisplayMode.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace X.Web.PagedList;
1+
namespace X.PagedList.Mvc.Core;
22

33
/// <summary>
44
/// A tri-state enum that controls the visibility of portions of the PagedList paging control.

src/X.Web.PagedList/PagedListRenderOptions.cs src/X.PagedList.Mvc.Core/PagedListRenderOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text.Encodings.Web;
55
using Microsoft.AspNetCore.Mvc.Rendering;
66

7-
namespace X.Web.PagedList;
7+
namespace X.PagedList.Mvc.Core;
88

99
public class PagedListRenderOptions
1010
{

src/X.PagedList.Mvc.Core/README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
# X.PagedList.Mvc.Core
1+
# X.Web.PagedList
22

3-
The X.PagedList.Mvc.Core library is a tool designed for ASP.NET Core applications that facilitates pagination of
4-
collections like IEnumerable and IQueryable.
5-
6-
## Important announcement
7-
In a continuous effort to enhance library quality and support, this package has been migrated to X.Web.PagedList.
3+
[![NuGet Version](http://img.shields.io/nuget/v/X.Web.PagedList.svg?style=flat)](https://www.nuget.org/packages/X.Web.PagedList/)
4+
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/andrew_gubskiy.svg?style=social&label=Follow%20me!)](https://twitter.com/intent/user?screen_name=andrew_gubskiy)
85

9-
From now on, please use [X.Web.PagedList](https://www.nuget.org/packages/X.Web.PagedList/) instead of this package.
106

11-
It's important to note that you must update your code to use the `X.PagedList` namespace instead of `X.PagedList.Mvc.Core`.
7+
## What is this?
8+
The X.PagedList.Mvc.Core library is a tool designed for ASP.NET Core applications that facilitates pagination of
9+
collections like IEnumerable and IQueryable.
1210

1311
## How to use
1412
You can find all information about how to use X.PagedList libraries in [Wiki](https://github.com/dncuug/X.PagedList/wiki)
1513

1614
## License
17-
Licensed under the [MIT License](https://github.com/dncuug/X.PagedList/blob/master/LICENSE).
15+
Licensed under the [MIT License](https://github.com/dncuug/X.PagedList/blob/master/LICENSE).
16+
17+
## Get a digital subscription for project news
18+
[Subscribe](https://twitter.com/intent/user?screen_name=andrew_gubskiy) to my Twitter to keep up-to-date with project news and receive announcements.

src/X.Web.PagedList/TagBuilderExtensions.cs src/X.PagedList.Mvc.Core/TagBuilderExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Microsoft.AspNetCore.Html;
55
using Microsoft.AspNetCore.Mvc.Rendering;
66

7-
namespace X.Web.PagedList;
7+
namespace X.PagedList.Mvc.Core;
88

99
[PublicAPI]
1010
public static class TagBuilderExtensions

src/X.Web.PagedList/TagBuilderFactory.cs src/X.PagedList.Mvc.Core/TagBuilderFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.AspNetCore.Mvc.Rendering;
22

3-
namespace X.Web.PagedList;
3+
namespace X.PagedList.Mvc.Core;
44

55
public interface ITagBuilderFactory
66
{

src/X.PagedList.Mvc.Core/X.PagedList.Mvc.Core.csproj

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Title>X.PagedList.Mvc.Core</Title>
5-
<Description>ASP.NET Core extensions for X.PagedList library</Description>
5+
<Description>ASP.NET Core extensions for implementing paging in web applications.</Description>
66

77
<LangVersion>default</LangVersion>
88
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
@@ -28,7 +28,11 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<ProjectReference Include="..\X.Web.PagedList\X.Web.PagedList.csproj"/>
31+
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" PrivateAssets="all"/>
32+
</ItemGroup>
33+
34+
<ItemGroup>
35+
<ProjectReference Include="..\X.PagedList\X.PagedList.csproj"/>
3236
</ItemGroup>
3337

3438
</Project>
File renamed without changes.

src/X.Web.PagedList/README.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
# X.Web.PagedList
22

3-
[![NuGet Version](http://img.shields.io/nuget/v/X.Web.PagedList.svg?style=flat)](https://www.nuget.org/packages/X.Web.PagedList/)
4-
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/andrew_gubskiy.svg?style=social&label=Follow%20me!)](https://twitter.com/intent/user?screen_name=andrew_gubskiy)
5-
6-
7-
## What is this?
8-
The X.PagedList.Mvc.Core library is a tool designed for ASP.NET Core applications that facilitates pagination of
9-
collections like IEnumerable and IQueryable.
3+
The X.Web.PagedList was migrated to X.PagedList.Mvc.Core.
104

115
## How to use
126
You can find all information about how to use X.PagedList libraries in [Wiki](https://github.com/dncuug/X.PagedList/wiki)
137

148
## License
15-
Licensed under the [MIT License](https://github.com/dncuug/X.PagedList/blob/master/LICENSE).
16-
17-
## Get a digital subscription for project news
18-
[Subscribe](https://twitter.com/intent/user?screen_name=andrew_gubskiy) to my Twitter to keep up-to-date with project news and receive announcements.
9+
Licensed under the [MIT License](https://github.com/dncuug/X.PagedList/blob/master/LICENSE).

src/X.Web.PagedList/X.Web.PagedList.csproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Title>X.Web.PagedList</Title>
4+
<Title>X.PagedList.Mvc.Core</Title>
55
<Description>ASP.NET Core extensions for implementing paging in web applications.</Description>
66

77
<LangVersion>default</LangVersion>
@@ -25,6 +25,9 @@
2525

2626
<ItemGroup>
2727
<FrameworkReference Include="Microsoft.AspNetCore.App"/>
28+
</ItemGroup>
29+
30+
<ItemGroup>
2831
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" PrivateAssets="all"/>
2932
</ItemGroup>
3033

src/X.Web.PagedList/xpagedlist.snk

-596 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)