Merge pull request #280 from JohnCOsborne/master

Capitalized isPaging property
This commit is contained in:
Eric Fleming
2019-07-29 20:25:25 -04:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -15,6 +15,6 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
int Take { get; }
int Skip { get; }
bool isPagingEnabled { get;}
bool IsPagingEnabled { get;}
}
}

View File

@@ -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<Func<T, object>> includeExpression)
{
@@ -34,7 +34,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications
{
Skip = skip;
Take = take;
isPagingEnabled = true;
IsPagingEnabled = true;
}
protected virtual void ApplyOrderBy(Expression<Func<T, object>> orderByExpression)
{

View File

@@ -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);