From 0d606d18572a405c76f2e2a05456bdc89a5d4f81 Mon Sep 17 00:00:00 2001 From: Eric Fleming Date: Wed, 1 May 2019 19:41:22 -0400 Subject: [PATCH] Removing the apply in the CatalogFilterPaginationSpecification - This is so I can commit this to the repo as an example. --- src/ApplicationCore/Specifications/BaseSpecification.cs | 1 + .../Specifications/CatalogFilterPaginatedSpecification.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApplicationCore/Specifications/BaseSpecification.cs b/src/ApplicationCore/Specifications/BaseSpecification.cs index bcf1284..f87b8d5 100644 --- a/src/ApplicationCore/Specifications/BaseSpecification.cs +++ b/src/ApplicationCore/Specifications/BaseSpecification.cs @@ -45,6 +45,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications OrderByDescending = orderByDescendingExpression; } + //Not used anywhere at the moment, but someone requested an example of setting this up. protected virtual void ApplyGroupBy(Expression> groupByExpression) { GroupBy = groupByExpression; diff --git a/src/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs b/src/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs index 562492d..f24b8c6 100644 --- a/src/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs +++ b/src/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs @@ -9,7 +9,6 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications (!typeId.HasValue || i.CatalogTypeId == typeId)) { ApplyPaging(skip, take); - ApplyGroupBy(i => new { i.CatalogType }); } } }