Skip to content

Commit

Permalink
ToPaginatedListAsync bug has been fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir Ahmad Arjel authored and Tanvir Ahmad Arjel committed Jan 13, 2024
1 parent 01a306d commit 19dcc42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<Version>6.0.3</Version>
<Version>6.0.4</Version>
<LangVersion>8.0</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- <GeneratePackageOnBuild>true</GeneratePackageOnBuild> -->
Expand Down
4 changes: 2 additions & 2 deletions src/TanvirArjel.EFCore.QueryRepository/QueryableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ public static async Task<PaginatedList<T>> ToPaginatedListAsync<T>(

IQueryable<T> countSource = source;

// modify the IQueryable using the specification's expression criteria
// Modify the IQueryable using the specification's expression criteria
if (specification.Conditions != null && specification.Conditions.Count != 0)
{
foreach (Expression<Func<T, bool>> condition in specification.Conditions)
{
countSource = source.Where(condition);
countSource = countSource.Where(condition);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<Version>1.5.2</Version>
<Version>1.5.3</Version>
<LangVersion>8.0</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- <GeneratePackageOnBuild>true</GeneratePackageOnBuild> -->
Expand Down

0 comments on commit 19dcc42

Please sign in to comment.