Skip to content

Commit

Permalink
Allowing IQueryable instead of IOrderedQueryable in PaginatedListModel
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmwebb-lv committed Jan 17, 2025
1 parent d0bcc3b commit 853c635
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected override void OnBuildInitialized()
{
Log.Information("Generating NuGet packages for projects in solution");
int commitNum = 0;
string NuGetVersionCustom = "2.1.2.0";
string NuGetVersionCustom = "2.1.2.1";


//if it's not a tagged release - append the commit number to the package version
Expand Down
8 changes: 4 additions & 4 deletions Src/RCommon.Models/PaginatedListModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public abstract record PaginatedListModel<TSource, TOut> : IModel
where TOut : class
{

protected PaginatedListModel(IOrderedQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
protected PaginatedListModel(IQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
{
PaginateQueryable(source, paginatedListRequest);
}

protected void PaginateQueryable(IOrderedQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
protected void PaginateQueryable(IQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
{
if (source == null)
{
Expand Down Expand Up @@ -97,12 +97,12 @@ public abstract record PaginatedListModel<TSource> : IModel
where TSource : class
{

protected PaginatedListModel(IOrderedQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
protected PaginatedListModel(IQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
{
PaginateQueryable(source, paginatedListRequest);
}

protected void PaginateQueryable(IOrderedQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
protected void PaginateQueryable(IQueryable<TSource> source, PaginatedListRequest paginatedListRequest)
{
if (source == null)
{
Expand Down

0 comments on commit 853c635

Please sign in to comment.