Steve Smith
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/Infrastructure/Data/SpecificationEvaluator.cs
|
|
|
@ -28,9 +28,13 @@ namespace Microsoft.eShopWeb.Infrastructure.Data |
|
|
|
|
|
|
|
// Apply ordering if expressions are set
|
|
|
|
if (specification.OrderBy != null) |
|
|
|
{ |
|
|
|
query = query.OrderBy(specification.OrderBy); |
|
|
|
} |
|
|
|
else if (specification.OrderByDescending != null) |
|
|
|
{ |
|
|
|
query = query.OrderByDescending(specification.OrderByDescending); |
|
|
|
} |
|
|
|
|
|
|
|
// Apply paging if enabled
|
|
|
|
if (specification.isPagingEnabled) |
|
|
|
|