mirror of
https://github.com/valentincanonical/eShopOnWeb-chisel-demo.git
synced 2026-05-06 16:36:40 +00:00
* Added possibility to chain includes. * Removed interface. * Removed the need for generating GUIDs as ids and added tests.
15 lines
517 B
C#
15 lines
517 B
C#
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
|
using Microsoft.eShopWeb.ApplicationCore.Helpers.Query;
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
|
{
|
|
public class CustomerOrdersWithItemsSpecification : BaseSpecification<Order>
|
|
{
|
|
public CustomerOrdersWithItemsSpecification(string buyerId)
|
|
: base(o => o.BuyerId == buyerId)
|
|
{
|
|
AddIncludes(query => query.Include(o => o.OrderItems).ThenInclude(i => i.ItemOrdered));
|
|
}
|
|
}
|
|
}
|