29 lines
901 B
C#
Raw Normal View History

namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate
{
using Microsoft.eShopOnContainers.Services.Ordering.Domain.SeedWork;
2017-01-19 19:51:28 -08:00
//TO DO:
//(CDLTLL) Wrong implementation. Need to put Setters as private
// and only be able to update the OrderItem through specific methods, if needed, so we can
// have validations/control/logic in those "update or set methods".
//We also need to have a constructor with the needed params, we must not use the "setters"..
public class OrderItem
:Entity
{
2016-12-14 18:23:57 +01:00
public int ProductId { get; set; }
2016-12-14 18:23:57 +01:00
public string ProductName { get; set; }
public string PictureUrl { get; set; }
2016-12-14 18:23:57 +01:00
public int OrderId { get; set; }
2016-12-14 18:23:57 +01:00
public decimal UnitPrice { get; set; }
2016-12-14 18:23:57 +01:00
public decimal Discount { get; set; }
2016-12-14 18:23:57 +01:00
public int Units { get; set; }
}
}