From 853c6353e9e2e08d21b9b975a052d36b4ecae146 Mon Sep 17 00:00:00 2001 From: Jason Webb Date: Fri, 17 Jan 2025 02:02:41 -0700 Subject: [PATCH] Allowing IQueryable instead of IOrderedQueryable in PaginatedListModel --- Build/Build.cs | 2 +- Src/RCommon.Models/PaginatedListModel.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Build/Build.cs b/Build/Build.cs index c6b052db..27fdab02 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -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 diff --git a/Src/RCommon.Models/PaginatedListModel.cs b/Src/RCommon.Models/PaginatedListModel.cs index 9e3646f1..fca80039 100644 --- a/Src/RCommon.Models/PaginatedListModel.cs +++ b/Src/RCommon.Models/PaginatedListModel.cs @@ -17,12 +17,12 @@ public abstract record PaginatedListModel : IModel where TOut : class { - protected PaginatedListModel(IOrderedQueryable source, PaginatedListRequest paginatedListRequest) + protected PaginatedListModel(IQueryable source, PaginatedListRequest paginatedListRequest) { PaginateQueryable(source, paginatedListRequest); } - protected void PaginateQueryable(IOrderedQueryable source, PaginatedListRequest paginatedListRequest) + protected void PaginateQueryable(IQueryable source, PaginatedListRequest paginatedListRequest) { if (source == null) { @@ -97,12 +97,12 @@ public abstract record PaginatedListModel : IModel where TSource : class { - protected PaginatedListModel(IOrderedQueryable source, PaginatedListRequest paginatedListRequest) + protected PaginatedListModel(IQueryable source, PaginatedListRequest paginatedListRequest) { PaginateQueryable(source, paginatedListRequest); } - protected void PaginateQueryable(IOrderedQueryable source, PaginatedListRequest paginatedListRequest) + protected void PaginateQueryable(IQueryable source, PaginatedListRequest paginatedListRequest) { if (source == null) {