From b5defc8d347e5714e4efaa410308236a93441104 Mon Sep 17 00:00:00 2001 From: John Caleb Osborne Date: Mon, 29 Jul 2019 05:16:02 -0400 Subject: [PATCH] Capitalized isPaging property --- src/ApplicationCore/Interfaces/ISpecification.cs | 2 +- src/ApplicationCore/Specifications/BaseSpecification.cs | 4 ++-- src/Infrastructure/Data/SpecificationEvaluator.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ApplicationCore/Interfaces/ISpecification.cs b/src/ApplicationCore/Interfaces/ISpecification.cs index f67414a..2097163 100644 --- a/src/ApplicationCore/Interfaces/ISpecification.cs +++ b/src/ApplicationCore/Interfaces/ISpecification.cs @@ -15,6 +15,6 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces int Take { get; } int Skip { get; } - bool isPagingEnabled { get;} + bool IsPagingEnabled { get;} } } diff --git a/src/ApplicationCore/Specifications/BaseSpecification.cs b/src/ApplicationCore/Specifications/BaseSpecification.cs index f87b8d5..2b440e5 100644 --- a/src/ApplicationCore/Specifications/BaseSpecification.cs +++ b/src/ApplicationCore/Specifications/BaseSpecification.cs @@ -20,7 +20,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications public int Take { get; private set; } public int Skip { get; private set; } - public bool isPagingEnabled { get; private set; } = false; + public bool IsPagingEnabled { get; private set; } = false; protected virtual void AddInclude(Expression> includeExpression) { @@ -34,7 +34,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications { Skip = skip; Take = take; - isPagingEnabled = true; + IsPagingEnabled = true; } protected virtual void ApplyOrderBy(Expression> orderByExpression) { diff --git a/src/Infrastructure/Data/SpecificationEvaluator.cs b/src/Infrastructure/Data/SpecificationEvaluator.cs index f029066..a564220 100644 --- a/src/Infrastructure/Data/SpecificationEvaluator.cs +++ b/src/Infrastructure/Data/SpecificationEvaluator.cs @@ -41,7 +41,7 @@ namespace Microsoft.eShopWeb.Infrastructure.Data } // Apply paging if enabled - if (specification.isPagingEnabled) + if (specification.IsPagingEnabled) { query = query.Skip(specification.Skip) .Take(specification.Take);