Browse Source
* use lambda expression => improve database call * use lambda instead for each replace call to repository to reduce call to database * improve readability and maintainability, and add order by * clean semicolon * fix use correct catalog item idmain
committed by
GitHub
4 changed files with 69 additions and 46 deletions
@ -0,0 +1,14 @@ |
|||
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|||
using System; |
|||
using System.Linq; |
|||
|
|||
namespace Microsoft.eShopWeb.ApplicationCore.Specifications |
|||
{ |
|||
public class CatalogItemsSpecification : BaseSpecification<CatalogItem> |
|||
{ |
|||
public CatalogItemsSpecification(params int[] ids) : base(c => ids.Contains(c.Id)) |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue