Skip to content

Commit

Permalink
Fix JsonConvert setters
Browse files Browse the repository at this point in the history
  • Loading branch information
SitholeWB committed Mar 28, 2024
1 parent c942e21 commit c93f13a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>2.5.1.0</Version>
<Version>2.5.6.0</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>This is a library for List Pagination on Dotnet, auto map or convert source to destination model.
Works well with Entity Framework as an extension and supports asynchronous calls.
<Description>
This is a library for List Pagination on Dotnet, auto map or convert source to destination model.
Works well with Entity Framework as an extension and supports asynchronous calls.

More example of project URL https://github.com/SitholeWB/Pagination.EntityFrameworkCore.Extensions
</Description>
<PackageReleaseNotes>This is a library for List Pagination on Dotnet, auto map or convert source to destination model.
Works well with Entity Framework as an extension and supports asynchronous calls.
More example of project URL https://github.com/SitholeWB/Pagination.EntityFrameworkCore.Extensions
</Description>
<PackageReleaseNotes>
This is a library for List Pagination on Dotnet, auto map or convert source to destination model.
Works well with Entity Framework as an extension and supports asynchronous calls.

More example of project URL https://github.com/SitholeWB/Pagination.EntityFrameworkCore.Extensions
</PackageReleaseNotes>
More example of project URL https://github.com/SitholeWB/Pagination.EntityFrameworkCore.Extensions
</PackageReleaseNotes>
<PackageTags>EntityFrameworkCore;paginated;pagination;extensions</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/SitholeWB/Pagination.EntityFrameworkCore.Extensions</RepositoryUrl>
Expand Down
18 changes: 7 additions & 11 deletions Pagination.EntityFrameworkCore.Extensions/Pagination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,17 @@ namespace Pagination.EntityFrameworkCore.Extensions
{
public class Pagination<T>
{
public long TotalItems { get; private set; }
public int CurrentPage { get; private set; }
public int? NextPage { get; private set; }
public int? PreviousPage { get; private set; }
public int TotalPages { get; private set; }
public IEnumerable<T> Results { get; private set; }
public long TotalItems { get; set; }
public int CurrentPage { get; set; }
public int? NextPage { get; set; }
public int? PreviousPage { get; set; }
public int TotalPages { get; set; }
public IEnumerable<T> Results { get; set; }

public Pagination()
{
TotalItems = 0;
Results = new List<T>();
CurrentPage = 1;
NextPage = null;
PreviousPage = null;
TotalPages = 1;
Results = Enumerable.Empty<T>();
}

public Pagination(Pagination<T> pagination)
Expand Down

0 comments on commit c93f13a

Please sign in to comment.