Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dncuug/X.PagedList
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v10.0.3
Choose a base ref
...
head repository: dncuug/X.PagedList
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 13, 2024

  1. Update version

    a-gubskiy committed Jul 13, 2024
    Copy the full SHA
    8b6a90a View commit details

Commits on Jul 24, 2024

  1. Copy the full SHA
    3744dde View commit details

Commits on Aug 1, 2024

  1. Copy the full SHA
    8ec7149 View commit details
  2. Update README.md

    Add mock project
    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    b915ae8 View commit details
  3. Update version

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    7021ccd View commit details
  4. Copy the full SHA
    bf9bd93 View commit details
  5. Update example web app

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    595abcf View commit details
  6. Add icons

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    6e535d5 View commit details
  7. Merge pull request #284 from dncuug/namespace-update-stage-1

    Namespace update. Stage 1
    ernado-x authored Aug 1, 2024
    Copy the full SHA
    44d5ea0 View commit details
  8. Fis using

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    989e774 View commit details
  9. Copy the full SHA
    ce4790f View commit details
  10. Add project file

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    d4d0540 View commit details
  11. Update project settings

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    b81e617 View commit details
  12. Update icons

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    6a083b5 View commit details
  13. Update README.md

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    77339bd View commit details
  14. Update README.md

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    dd3b4f2 View commit details
  15. Merge pull request #285 from dncuug/namespace-update-stage-2

    Namespace update. Stage 2
    ernado-x authored Aug 1, 2024
    Copy the full SHA
    b484a76 View commit details
  16. Add JetBrains.Annotations

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    d42e1b3 View commit details
  17. Update README.md

    ernado-x authored Aug 1, 2024
    Copy the full SHA
    9aff37d View commit details
  18. Cleanup old

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    9394420 View commit details
  19. Copy the full SHA
    d2725c8 View commit details
  20. Update build script

    a-gubskiy committed Aug 1, 2024
    Copy the full SHA
    db9c6ae View commit details

Commits on Aug 19, 2024

  1. Bump Microsoft.EntityFrameworkCore.Sqlite and Microsoft.EntityFramewo…

    …rkCore
    
    Bumps [Microsoft.EntityFrameworkCore.Sqlite](https://github.com/dotnet/efcore) and [Microsoft.EntityFrameworkCore](https://github.com/dotnet/efcore). These dependencies needed to be updated together.
    
    Updates `Microsoft.EntityFrameworkCore.Sqlite` from 8.0.7 to 8.0.8
    - [Release notes](https://github.com/dotnet/efcore/releases)
    - [Commits](dotnet/efcore@v8.0.7...v8.0.8)
    
    Updates `Microsoft.EntityFrameworkCore` from 8.0.7 to 8.0.8
    - [Release notes](https://github.com/dotnet/efcore/releases)
    - [Commits](dotnet/efcore@v8.0.7...v8.0.8)
    
    ---
    updated-dependencies:
    - dependency-name: Microsoft.EntityFrameworkCore.Sqlite
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: Microsoft.EntityFrameworkCore
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 19, 2024
    Copy the full SHA
    d51eb88 View commit details
  2. Bump Microsoft.EntityFrameworkCore.Design and Microsoft.EntityFramewo…

    …rkCore
    
    Bumps [Microsoft.EntityFrameworkCore.Design](https://github.com/dotnet/efcore) and [Microsoft.EntityFrameworkCore](https://github.com/dotnet/efcore). These dependencies needed to be updated together.
    
    Updates `Microsoft.EntityFrameworkCore.Design` from 8.0.7 to 8.0.8
    - [Release notes](https://github.com/dotnet/efcore/releases)
    - [Commits](dotnet/efcore@v8.0.7...v8.0.8)
    
    Updates `Microsoft.EntityFrameworkCore` from 8.0.7 to 8.0.8
    - [Release notes](https://github.com/dotnet/efcore/releases)
    - [Commits](dotnet/efcore@v8.0.7...v8.0.8)
    
    ---
    updated-dependencies:
    - dependency-name: Microsoft.EntityFrameworkCore.Design
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: Microsoft.EntityFrameworkCore
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 19, 2024
    Copy the full SHA
    341daae View commit details

Commits on Aug 20, 2024

  1. Merge pull request #286 from dncuug/dependabot/nuget/multi-7a460b1692

    Bump Microsoft.EntityFrameworkCore.Sqlite and Microsoft.EntityFrameworkCore
    ernado-x authored Aug 20, 2024
    Copy the full SHA
    6aa67bf View commit details
  2. Merge pull request #287 from dncuug/dependabot/nuget/multi-85c3214640

    Bump Microsoft.EntityFrameworkCore.Design and Microsoft.EntityFrameworkCore
    ernado-x authored Aug 20, 2024
    Copy the full SHA
    9dd3505 View commit details

Commits on Aug 26, 2024

  1. Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.0

    Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.10.0 to 17.11.0.
    - [Release notes](https://github.com/microsoft/vstest/releases)
    - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
    - [Commits](microsoft/vstest@v17.10.0...v17.11.0)
    
    ---
    updated-dependencies:
    - dependency-name: Microsoft.NET.Test.Sdk
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 26, 2024
    Copy the full SHA
    663e966 View commit details

Commits on Aug 29, 2024

  1. Merge pull request #289 from dncuug/dependabot/nuget/Microsoft.NET.Te…

    …st.Sdk-17.11.0
    
    Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.0
    ernado-x authored Aug 29, 2024
    Copy the full SHA
    0fc966d View commit details

Commits on Aug 30, 2024

  1. Copy the full SHA
    70ea8cf View commit details

Commits on Sep 9, 2024

  1. Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1

    Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.11.0 to 17.11.1.
    - [Release notes](https://github.com/microsoft/vstest/releases)
    - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
    - [Commits](microsoft/vstest@v17.11.0...v17.11.1)
    
    ---
    updated-dependencies:
    - dependency-name: Microsoft.NET.Test.Sdk
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 9, 2024
    Copy the full SHA
    8e15314 View commit details
  2. Merge pull request #291 from dncuug/dependabot/nuget/Microsoft.NET.Te…

    …st.Sdk-17.11.1
    
    Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1
    ernado-x authored Sep 9, 2024
    Copy the full SHA
    297bedd View commit details

Commits on Sep 18, 2024

  1. Update FUNDING.yml

    a-gubskiy authored Sep 18, 2024
    Copy the full SHA
    ff38d51 View commit details

Commits on Sep 20, 2024

  1. Copy the full SHA
    b156b88 View commit details
  2. Copy the full SHA
    2f0e254 View commit details
  3. Update references

    a-gubskiy committed Sep 20, 2024
    Copy the full SHA
    8f9ca71 View commit details
  4. Update package settings

    a-gubskiy committed Sep 20, 2024
    Copy the full SHA
    c7ae265 View commit details
  5. Update README.md

    a-gubskiy committed Sep 20, 2024
    Copy the full SHA
    8a0cf65 View commit details
  6. Update settings

    a-gubskiy committed Sep 20, 2024
    Copy the full SHA
    76be4f7 View commit details
  7. Restore snk file

    a-gubskiy committed Sep 20, 2024
    Copy the full SHA
    4766b29 View commit details
  8. Merge pull request #293 from dncuug/292-align-namespaces-restore-pack…

    …age-names-for-xpagedlist-after-nuget-team-approval
    
    Align namespaces for X.PagedList after NuGet team prefix reservation approval
    a-gubskiy authored Sep 20, 2024
    Copy the full SHA
    35e4e2e View commit details
  9. Cleanup solution

    a-gubskiy committed Sep 20, 2024
    Copy the full SHA
    59953a6 View commit details
  10. Update workflow

    a-gubskiy committed Sep 20, 2024
    Copy the full SHA
    0b60f05 View commit details
  11. Copy the full SHA
    51d8edb View commit details

Commits on Sep 22, 2024

  1. Update README.md

    a-gubskiy committed Sep 22, 2024
    Copy the full SHA
    2c0898f View commit details
  2. Update version

    a-gubskiy committed Sep 22, 2024
    Copy the full SHA
    e8cdacd View commit details

Commits on Sep 23, 2024

  1. Bump xunit from 2.9.0 to 2.9.1

    Bumps [xunit](https://github.com/xunit/xunit) from 2.9.0 to 2.9.1.
    - [Commits](xunit/xunit@2.9.0...2.9.1)
    
    ---
    updated-dependencies:
    - dependency-name: xunit
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 23, 2024
    Copy the full SHA
    84874f5 View commit details
  2. Merge pull request #296 from dncuug/dependabot/nuget/xunit-2.9.1

    Bump xunit from 2.9.0 to 2.9.1
    a-gubskiy authored Sep 23, 2024
    Copy the full SHA
    79903c1 View commit details

Commits on Sep 30, 2024

  1. Bump xunit from 2.9.1 to 2.9.2

    Bumps [xunit](https://github.com/xunit/xunit) from 2.9.1 to 2.9.2.
    - [Commits](xunit/xunit@v2-2.9.1...v2-2.9.2)
    
    ---
    updated-dependencies:
    - dependency-name: xunit
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 30, 2024
    Copy the full SHA
    ee1e953 View commit details
  2. Merge pull request #297 from dncuug/dependabot/nuget/xunit-2.9.2

    Bump xunit from 2.9.1 to 2.9.2
    a-gubskiy authored Sep 30, 2024
    Copy the full SHA
    650339b View commit details

Commits on Oct 7, 2024

  1. Treewide: Provide specific namespace for Extensions (again)

    As discussed in [1], using a separate namespace for Extensions has several
    advantages. Unfortunately, the dedicated namespace for the PagedListExtensions
    has been removed during the package name rearrangements and not added back
    after.
    
    This commit adds it back and essentially reverts the namespace scheme to
    where it was in v10.0.3, like already done for the rest of the code.
    
    To indicate this more prominently, the PagedListExtensions.cs class is moved
    into an "Extensions" subfolder, so the namespace now also matches the folder
    structure.
    
    From the released packages, this affects X.PagedList and X.PagedList.Mvc.Core.
    
    [1] 6ae094e ("Treewide: Provide specific namespaces for Extensions")
    
    Fixes: #290
    adschmu committed Oct 7, 2024
    Copy the full SHA
    14e6f89 View commit details
Showing with 402 additions and 490 deletions.
  1. +1 −1 .github/FUNDING.yml
  2. +0 −102 .github/workflows/build.yml
  3. 0 LICENSE → LICENSE.md
  4. +2 −5 README.md
  5. +13 −13 X.PagedList.sln
  6. +5 −5 examples/Example.DAL/Example.DAL.csproj
  7. +0 −2 examples/Example.Website/Controllers/HomeController.cs
  8. +8 −1 examples/Example.Website/Example.Website.csproj
  9. +6 −6 examples/Example.Website/Program.cs
  10. +1 −1 examples/Example.Website/Views/Bootstrap41/Index.cshtml
  11. +2 −2 examples/Example.Website/Views/EF/Index.cshtml
  12. +9 −9 examples/Example.Website/Views/Home/Index.cshtml
  13. +1 −1 examples/Example.Website/Views/Shared/_Layout-41.cshtml
  14. +2 −2 examples/Example.Website/Views/Shared/_Layout.cshtml
  15. +1 −2 examples/Example.Website/Views/_ViewImports.cshtml
  16. +0 −1 examples/Example.Website/wwwroot/css/site.min.css
  17. +0 −1 examples/Example.Website/wwwroot/images/banner1.svg
  18. +0 −1 examples/Example.Website/wwwroot/images/banner2.svg
  19. +0 −1 examples/Example.Website/wwwroot/images/banner3.svg
  20. +0 −1 examples/Example.Website/wwwroot/images/banner4.svg
  21. +15 −15 src/Directory.Build.props
  22. +3 −3 src/X.PagedList.EF/PagedListExtensions.cs
  23. +4 −7 src/X.PagedList.EF/README.md
  24. +13 −8 src/X.PagedList.EF/X.PagedList.EF.csproj
  25. BIN src/X.PagedList.EF/icon.png
  26. +3 −20 src/X.PagedList.Mvc.Core/AjaxOptions.cs
  27. +2 −2 src/X.PagedList.Mvc.Core/Fluent/HtmlPagerExtensions.cs
  28. +23 −25 src/X.PagedList.Mvc.Core/GoToFormRenderOptions.cs
  29. +13 −0 src/X.PagedList.Mvc.Core/HtmlAttribute.cs
  30. +38 −38 src/X.PagedList.Mvc.Core/HtmlHelperExtension.cs
  31. +9 −0 src/X.PagedList.Mvc.Core/InsertionMode.cs
  32. +100 −100 src/X.PagedList.Mvc.Core/PagedListRenderOptions.cs
  33. +3 −6 src/X.PagedList.Mvc.Core/README.md
  34. +16 −6 src/X.PagedList.Mvc.Core/X.PagedList.Mvc.Core.csproj
  35. BIN src/X.PagedList.Mvc.Core/icon.png
  36. +70 −13 src/X.PagedList/BasePagedList.cs
  37. +2 −2 src/X.PagedList/{ → Extensions}/PagedListExtensions.cs
  38. +3 −3 src/X.PagedList/IPagedList.cs
  39. +1 −1 src/X.PagedList/OrderedPagedList.cs
  40. +5 −5 src/X.PagedList/PagedListMetaData.cs
  41. +1 −1 src/X.PagedList/StaticPagedList.cs
  42. +6 −3 src/X.PagedList/X.PagedList.csproj
  43. BIN src/X.PagedList/icon.png
  44. +5 −59 tests/X.PagedList.Tests/TestDbAsyncQueryProvider.cs
  45. +16 −16 tests/X.PagedList.Tests/X.PagedList.Tests.csproj
  46. BIN x-pagedlist.png
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# github: [ernado-x]
github: [a-gubskiy]
buy_me_a_coffee: g.andrew
custom: ["http://andrew.gubskiy.com/donate"]
102 changes: 0 additions & 102 deletions .github/workflows/build.yml

This file was deleted.

File renamed without changes.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# X.PagedList

[![NuGet Version](http://img.shields.io/nuget/v/X.PagedList.svg?style=flat)](https://www.nuget.org/packages/X.PagedList/)
[![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)
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/andrew_gubskiy.svg?style=social&label=Follow%20me!)](https://x.com/intent/user?screen_name=andrew_gubskiy)


## What is this?
@@ -15,8 +15,5 @@ by an index. PagedList.Mvc allows you to take that "page" and display a pager co
## How to use
You can find all information about how to use X.PagedList libraries in [Wiki](https://github.com/dncuug/X.PagedList/wiki)

## License
Licensed under the [MIT License](https://github.com/dncuug/X.PagedList/blob/master/LICENSE).

## Get a digital subscription for project news
[Subscribe](https://twitter.com/intent/user?screen_name=andrew_gubskiy) to my Twitter to keep up-to-date with project news and receive announcements.
[Subscribe](https://x.com/intent/user?screen_name=andrew_gubskiy) to my X to keep up-to-date with project news and receive announcements.
26 changes: 13 additions & 13 deletions X.PagedList.sln
Original file line number Diff line number Diff line change
@@ -14,15 +14,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{30
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "X.PagedList", "src\X.PagedList\X.PagedList.csproj", "{49F86DF5-728F-4F22-986E-38DFC9C2432A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "X.PagedList.Mvc.Core", "src\X.PagedList.Mvc.Core\X.PagedList.Mvc.Core.csproj", "{3FB17E16-B671-450F-81BD-FD607D6A78C4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "X.PagedList.Tests", "tests\X.PagedList.Tests\X.PagedList.Tests.csproj", "{C78B1316-1EF9-45C3-A3FD-9A131BA3DD62}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example.Website", "examples\Example.Website\Example.Website.csproj", "{288F5726-904F-48B8-8363-EA1A22D331D1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example.DAL", "examples\Example.DAL\Example.DAL.csproj", "{AD16A8D1-EAF0-4947-BCEC-A8B423B2F117}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "X.PagedList.EF", "src\X.PagedList.EF\X.PagedList.EF.csproj", "{1934BC10-30AE-4C4C-AF22-E444B1F70ACA}"
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}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "X.PagedList.EF", "src\X.PagedList.EF\X.PagedList.EF.csproj", "{B72170CA-12E0-46E5-821C-FCE7E6F79736}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -34,10 +34,6 @@ Global
{49F86DF5-728F-4F22-986E-38DFC9C2432A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49F86DF5-728F-4F22-986E-38DFC9C2432A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{49F86DF5-728F-4F22-986E-38DFC9C2432A}.Release|Any CPU.Build.0 = Release|Any CPU
{3FB17E16-B671-450F-81BD-FD607D6A78C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FB17E16-B671-450F-81BD-FD607D6A78C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FB17E16-B671-450F-81BD-FD607D6A78C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FB17E16-B671-450F-81BD-FD607D6A78C4}.Release|Any CPU.Build.0 = Release|Any CPU
{C78B1316-1EF9-45C3-A3FD-9A131BA3DD62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C78B1316-1EF9-45C3-A3FD-9A131BA3DD62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C78B1316-1EF9-45C3-A3FD-9A131BA3DD62}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -50,21 +46,25 @@ Global
{AD16A8D1-EAF0-4947-BCEC-A8B423B2F117}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD16A8D1-EAF0-4947-BCEC-A8B423B2F117}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD16A8D1-EAF0-4947-BCEC-A8B423B2F117}.Release|Any CPU.Build.0 = Release|Any CPU
{1934BC10-30AE-4C4C-AF22-E444B1F70ACA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1934BC10-30AE-4C4C-AF22-E444B1F70ACA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1934BC10-30AE-4C4C-AF22-E444B1F70ACA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1934BC10-30AE-4C4C-AF22-E444B1F70ACA}.Release|Any CPU.Build.0 = Release|Any CPU
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE}.Release|Any CPU.Build.0 = Release|Any CPU
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B72170CA-12E0-46E5-821C-FCE7E6F79736}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{49F86DF5-728F-4F22-986E-38DFC9C2432A} = {BDDADD09-D112-418E-8469-BC762EC09936}
{3FB17E16-B671-450F-81BD-FD607D6A78C4} = {BDDADD09-D112-418E-8469-BC762EC09936}
{C78B1316-1EF9-45C3-A3FD-9A131BA3DD62} = {0170B742-C624-4C22-9DE1-2A93CF9C12D6}
{288F5726-904F-48B8-8363-EA1A22D331D1} = {309A8FC8-4784-4D8D-903F-BD54EBB0F1D7}
{AD16A8D1-EAF0-4947-BCEC-A8B423B2F117} = {309A8FC8-4784-4D8D-903F-BD54EBB0F1D7}
{1934BC10-30AE-4C4C-AF22-E444B1F70ACA} = {BDDADD09-D112-418E-8469-BC762EC09936}
{3B840A44-3150-4BB5-83DA-9B81D1FCB6BE} = {BDDADD09-D112-418E-8469-BC762EC09936}
{B72170CA-12E0-46E5-821C-FCE7E6F79736} = {BDDADD09-D112-418E-8469-BC762EC09936}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1A82D446-6F26-48B2-8085-DFA5F87453FC}
10 changes: 5 additions & 5 deletions examples/Example.DAL/Example.DAL.csproj
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.7">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.10"/>
</ItemGroup>

</Project>
2 changes: 0 additions & 2 deletions examples/Example.Website/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Example.DAL;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using X.PagedList;
using X.PagedList.Extensions;

9 changes: 8 additions & 1 deletion examples/Example.Website/Example.Website.csproj
Original file line number Diff line number Diff line change
@@ -7,9 +7,16 @@

<ItemGroup>
<ProjectReference Include="..\..\src\X.PagedList.EF\X.PagedList.EF.csproj"/>
<ProjectReference Include="..\..\src\X.PagedList.Mvc.Core\X.PagedList.Mvc.Core.csproj"/>
<ProjectReference Include="..\..\src\X.PagedList\X.PagedList.csproj"/>
<ProjectReference Include="..\..\src\X.PagedList.Mvc.Core\X.PagedList.Mvc.Core.csproj"/>
<ProjectReference Include="..\Example.DAL\Example.DAL.csproj"/>
</ItemGroup>

<!-- For live packages -->
<!-- <ItemGroup>-->
<!-- <PackageReference Include="X.PagedList" Version="10.5.3"/>-->
<!-- <PackageReference Include="X.PagedList.EF" Version="10.5.3"/>-->
<!-- <PackageReference Include="X.PagedList.Mvc.Core" Version="10.5.3"/>-->
<!-- </ItemGroup>-->

</Project>
12 changes: 6 additions & 6 deletions examples/Example.Website/Program.cs
Original file line number Diff line number Diff line change
@@ -17,12 +17,12 @@ public static void Main(string[] args)
builder.Services.AddDbContext<DatabaseContext>(options =>
{
var connectionString = $"Data Source={Path.Combine(builder.Environment.ContentRootPath, "data", "example.sqlite")}";

options.UseSqlite(connectionString);
});

var app = builder.Build();

if (builder.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
@@ -33,16 +33,16 @@ public static void Main(string[] args)
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}

app.UseStaticFiles();

app.UseRouting();

app.UseAuthorization();

app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");

app.Run();
}
2 changes: 1 addition & 1 deletion examples/Example.Website/Views/Bootstrap41/Index.cshtml
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@
ViewBag.Title = "Product Listing";
}

@using X.PagedList.Mvc.Core; @*import this so we get our HTML Helper*@
@using X.PagedList;
@using X.PagedList.Mvc.Core
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@

<!-- import the included stylesheet for some (very basic) default styling -->
4 changes: 2 additions & 2 deletions examples/Example.Website/Views/EF/Index.cshtml
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@
var pagedList = (IPagedList)ViewBag.Names;
}

@using X.PagedList.Mvc.Core; @*import this so we get our HTML Helper*@
@using X.PagedList;
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
@using X.PagedList.Mvc.Core
@using X.PagedList.Mvc.Core.Fluent
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@


<!-- import the included stylesheet for some (very basic) default styling -->
18 changes: 9 additions & 9 deletions examples/Example.Website/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -3,14 +3,14 @@
var pagedList = (IPagedList)ViewBag.Names;
}

@using X.PagedList.Mvc.Core; @*import this so we get our HTML Helper*@
@using X.PagedList;
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
@using X.PagedList.Mvc.Core
@using X.PagedList.Mvc.Core.Fluent
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@


<!-- import the included stylesheet for some (very basic) default styling -->
<link href="/css/PagedList.css" rel="stylesheet" type="text/css" />
<link href="/css/PagedList.css" rel="stylesheet" type="text/css"/>

<!-- loop through each of your products and display it however you want. we're just printing the name here -->
<h2>List of Products</h2>
@@ -33,7 +33,7 @@
@(Html.Pager(pagedList)
.Url(page => Url.Action("Index", new { page }))
.WithPartialView("Paging/_Pager_85")
.DisplayLinkToFirstPage (PagedListDisplayMode.IfNeeded)
.DisplayLinkToFirstPage(PagedListDisplayMode.IfNeeded)
.DisplayLinkToLastPage(PagedListDisplayMode.IfNeeded)
.DisplayLinkToPreviousPage()
.DisplayLinkToNextPage()
@@ -44,11 +44,11 @@
@Html.PagedListPager(pagedList,
page => Url.Action("Index",
new { page }),
new PagedListRenderOptions()
{
DisplayItemSliceAndTotal = true,
ItemSliceAndTotalPosition = ItemSliceAndTotalPosition.End
})
new PagedListRenderOptions()
{
DisplayItemSliceAndTotal = true,
ItemSliceAndTotalPosition = ItemSliceAndTotalPosition.End
})

<h3>Pager with ItemSliceAndTotalPosition at the beginning</h3>
@Html.PagedListPager(pagedList,
2 changes: 1 addition & 1 deletion examples/Example.Website/Views/Shared/_Layout-41.cshtml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<link rel="stylesheet" href="~/css/PagedList.css" />
</environment>
<environment names="Staging,Production">
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/PagedList.css" />
</environment>
</head>
4 changes: 2 additions & 2 deletions examples/Example.Website/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
<link rel="stylesheet" href="~/css/PagedList.css" />
</environment>
<environment names="Staging,Production">
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
</environment>
</head>
<body>
@@ -47,6 +47,6 @@
<script src="/lib/jquery-ajax-unobtrusive/jquery.unobtrusive-ajax.js"></script>


@RenderSection("Scripts", required: false)
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>
3 changes: 1 addition & 2 deletions examples/Example.Website/Views/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@using Example.Website
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
1 change: 0 additions & 1 deletion examples/Example.Website/wwwroot/css/site.min.css

This file was deleted.

Loading