Feature load improvement (#374)
* 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 id
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user