Skip to content

Commit 35e4e2e

Browse files
authored
Merge pull request #293 from dncuug/292-align-namespaces-restore-package-names-for-xpagedlist-after-nuget-team-approval
Align namespaces for X.PagedList after NuGet team prefix reservation approval
2 parents ff38d51 + 4766b29 commit 35e4e2e

37 files changed

+118
-92
lines changed

README.md

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
[![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)
55

66

7-
## Important announcement for X.PagedList users!
8-
9-
⚠️ [Namespace Transferring Announcement for X.PagedList Users](https://andrey-gubskiy.medium.com/namespace-transferring-announcement-for-x-pagedlist-users-234809138ff5).
10-
11-
127
## What is this?
138
This is a fork of [Troy's](https://github.com/troygoode) project PagedList. The main difference is that X.PagedList is a library that supports the
149
modern .NET platform — you can use it everywhere the .NET platform is supported.

X.PagedList.sln

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "X.Extensions.PagedList.EF",
2626
EndProject
2727
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "X.PagedList.Mvc.Core", "src\X.PagedList.Mvc.Core\X.PagedList.Mvc.Core.csproj", "{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}"
2828
EndProject
29+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "X.PagedList.EF", "src\X.PagedList.EF\X.PagedList.EF.csproj", "{B72170CA-12E0-46E5-821C-FCE7E6F79736}"
30+
EndProject
2931
Global
3032
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3133
Debug|Any CPU = Debug|Any CPU
@@ -60,6 +62,10 @@ Global
6062
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
6163
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
6264
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}.Release|Any CPU.Build.0 = Release|Any CPU
65+
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
66+
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Debug|Any CPU.Build.0 = Debug|Any CPU
67+
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Release|Any CPU.ActiveCfg = Release|Any CPU
68+
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Release|Any CPU.Build.0 = Release|Any CPU
6369
EndGlobalSection
6470
GlobalSection(SolutionProperties) = preSolution
6571
HideSolutionNode = FALSE
@@ -72,6 +78,7 @@ Global
7278
{AD16A8D1-EAF0-4947-BCEC-A8B423B2F117} = {309A8FC8-4784-4D8D-903F-BD54EBB0F1D7}
7379
{1934BC10-30AE-4C4C-AF22-E444B1F70ACA} = {BDDADD09-D112-418E-8469-BC762EC09936}
7480
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE} = {BDDADD09-D112-418E-8469-BC762EC09936}
81+
{B72170CA-12E0-46E5-821C-FCE7E6F79736} = {BDDADD09-D112-418E-8469-BC762EC09936}
7582
EndGlobalSection
7683
GlobalSection(ExtensibilityGlobals) = postSolution
7784
SolutionGuid = {1A82D446-6F26-48B2-8085-DFA5F87453FC}

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/Controllers/EFController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Threading.Tasks;
33
using Example.DAL;
44
using Microsoft.AspNetCore.Mvc;
5-
using X.Extensions.PagedList.EF;
5+
using X.PagedList.EF;
66

77
namespace Example.Website.Controllers;
88

examples/Example.Website/Example.Website.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<ProjectReference Include="..\..\src\X.Extensions.PagedList.EF\X.Extensions.PagedList.EF.csproj" />
9+
<ProjectReference Include="..\..\src\X.PagedList.EF\X.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/Directory.Build.props

+11-5
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<Copyright>Andrew Gubskiy © 2024</Copyright>
1111
<Company>Ukrainian .NET Developer Community</Company>
1212

13-
<Version>10.1.2</Version>
14-
<AssemblyVersion>10.1.2</AssemblyVersion>
15-
<FileVersion>10.1.2</FileVersion>
16-
<PackageVersion>10.1.2</PackageVersion>
13+
<Version>10.2.1</Version>
14+
<AssemblyVersion>10.2.1</AssemblyVersion>
15+
<FileVersion>10.2.1</FileVersion>
16+
<PackageVersion>10.2.1</PackageVersion>
1717

1818
<RepositoryType>git</RepositoryType>
1919
<RepositoryUrl>https://github.com/dncuug/X.PagedList.git</RepositoryUrl>
@@ -22,7 +22,13 @@
2222
<SignAssembly>true</SignAssembly>
2323
<AssemblyOriginatorKeyFile>xpagedlist.snk</AssemblyOriginatorKeyFile>
2424

25-
<Nullable>enable</Nullable>
25+
<Nullable>enable</Nullable>
26+
27+
<PackageIcon>x-pagedlist.png</PackageIcon>
2628
</PropertyGroup>
2729

30+
<ItemGroup>
31+
<None Include="../../x-pagedlist.png" Pack="True" PackagePath=""/>
32+
</ItemGroup>
33+
2834
</Project>

src/X.Extensions.PagedList.EF/README.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# X.Extensions.PagedList.EF
22

3-
[![NuGet Version](http://img.shields.io/nuget/v/X.Extensions.PagedList.EF.svg?style=flat)](https://www.nuget.org/packages/X.Extensions.PagedList.EF/)
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.Extensions.PagedList.EF library provides Entity Framework Core extensions for the X.PagedList library, enabling easier
9-
paging through data collections within Entity Framework contexts. This extension facilitates the creation of paged
10-
lists from IQueryable collections, streamlining the process of managing large datasets in .NET applications.
3+
The X.Extensions.PagedList.EF was migrated to the X.PagedList.EF.
114

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

src/X.Extensions.PagedList.EF/X.Extensions.PagedList.EF.csproj

+1-14
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
99

1010
<PackageTags>paging pagedlist paged list entity framework ef</PackageTags>
11-
<PackageIcon>x-extensions.png</PackageIcon>
1211
</PropertyGroup>
1312

1413
<ItemGroup>
@@ -19,24 +18,12 @@
1918
<None Include="../../LICENSE.md" Pack="true" PackagePath=""/>
2019
</ItemGroup>
2120

22-
<ItemGroup>
23-
<None Include="../../x-extensions.png" Pack="True" PackagePath=""/>
24-
</ItemGroup>
25-
26-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
27-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[7.0.20,8)"/>
28-
</ItemGroup>
29-
30-
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
31-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7"/>
32-
</ItemGroup>
33-
3421
<ItemGroup>
3522
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" PrivateAssets="all"/>
3623
</ItemGroup>
3724

3825
<ItemGroup>
39-
<ProjectReference Include="..\X.PagedList\X.PagedList.csproj"/>
26+
<ProjectReference Include="..\X.PagedList.EF\X.PagedList.EF.csproj" />
4027
</ItemGroup>
4128

4229
</Project>

src/X.Extensions.PagedList.EF/PagedListExtensions.cs src/X.PagedList.EF/PagedListExtensions.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
using System.Threading.Tasks;
66
using JetBrains.Annotations;
77
using Microsoft.EntityFrameworkCore;
8-
using X.PagedList;
98

10-
namespace X.Extensions.PagedList.EF;
9+
namespace X.PagedList.EF;
1110

1211
/// <summary>
1312
/// EntityFramework extension methods designed to simplify the creation of instances of <see cref="PagedList{T}"/>.

src/X.PagedList.EF/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# X.Extensions.PagedList.EF
2+
3+
[![NuGet Version](http://img.shields.io/nuget/v/X.Extensions.PagedList.EF.svg?style=flat)](https://www.nuget.org/packages/X.Extensions.PagedList.EF/)
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.Extensions.PagedList.EF library provides Entity Framework Core extensions for the X.PagedList library, enabling easier
9+
paging through data collections within Entity Framework contexts. This extension facilitates the creation of paged
10+
lists from IQueryable collections, streamlining the process of managing large datasets in .NET applications.
11+
12+
## How to use
13+
You can find all information about how to use X.PagedList libraries in [Wiki](https://github.com/dncuug/X.PagedList/wiki)
14+
15+
## License
16+
Licensed under the [MIT License](https://github.com/dncuug/X.PagedList/blob/master/LICENSE).
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Title>X.PagedList.EF</Title>
5+
<Description>EF extensions for X.PagedList library</Description>
6+
7+
<LangVersion>default</LangVersion>
8+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
9+
10+
<PackageTags>paging pagedlist paged list entity framework ef</PackageTags>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<None Include="README.md" Pack="true" PackagePath=""/>
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<None Include="../../LICENSE.md" Pack="true" PackagePath=""/>
19+
</ItemGroup>
20+
21+
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
22+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[7.0.20,8)"/>
23+
</ItemGroup>
24+
25+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
26+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7"/>
27+
</ItemGroup>
28+
29+
<ItemGroup>
30+
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" PrivateAssets="all"/>
31+
</ItemGroup>
32+
33+
<ItemGroup>
34+
<ProjectReference Include="..\X.PagedList\X.PagedList.csproj"/>
35+
</ItemGroup>
36+
37+
</Project>

src/X.PagedList.EF/xpagedlist.snk

596 Bytes
Binary file not shown.

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
{

0 commit comments

Comments
 (0)