|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Ardalis.GuardClauses; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate |
|
|
|
{ |
|
|
|
@ -6,6 +7,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate |
|
|
|
/// Represents a snapshot of the item that was ordered. If catalog item details change, details of
|
|
|
|
/// the item that was part of a completed order should not change.
|
|
|
|
/// </summary>
|
|
|
|
[Owned] |
|
|
|
public class CatalogItemOrdered // ValueObject
|
|
|
|
{ |
|
|
|
public CatalogItemOrdered(int catalogItemId, string productName, string pictureUri) |
|
|
|
|