Skip to content

Commit

Permalink
chore: Upgrade packages
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Oct 17, 2024
1 parent 6fb2b1f commit c8f45dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0-rc.2.24474.1" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0-rc.2.24474.1" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" Version="9.0.0-rc.2.24474.3" />
<PackageVersion Include="MongoDB.Driver" Version="2.30.0" />
<PackageVersion Include="MongoDB.Driver" Version="3.0.0" />
<PackageVersion Include="MySql.EntityFrameworkCore" Version="9.0.0-preview" />
<PackageVersion Include="RavenDB.Client" Version="6.2.0" />
</ItemGroup>
Expand All @@ -23,7 +23,7 @@
<PackageVersion Include="Markdig" Version="0.37.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.0-rc.2.24474.3" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="9.0.0-rc.2.24473.5" />
<PackageVersion Include="NCronJob" Version="3.1.2-preview" />
<PackageVersion Include="NCronJob" Version="3.1.3" />
<PackageVersion Include="System.ServiceModel.Syndication" Version="9.0.0-rc.2.24473.5" />
</ItemGroup>
<ItemGroup Label="Tests">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MongoDB.Driver;
using MongoDB.Driver.Linq;

namespace LinkDotNet.Blog.Infrastructure.Persistence.MongoDB;

public static class PaginatedListQueryExtensions
{
public static async Task<IPagedList<T>> ToPagedListAsync<T>(this IMongoQueryable<T> source, int pageIndex, int pageSize, CancellationToken token = default)
public static async Task<IPagedList<T>> ToPagedListAsync<T>(this IQueryable<T> source, int pageIndex, int pageSize, CancellationToken token = default)
{
var count = await source.CountAsync(token);
if (count > 0)
Expand Down

0 comments on commit c8f45dd

Please sign in to comment.