2017-01-17 18:32:40 -08:00
|
|
|
|
namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate
|
2016-11-21 12:41:36 +01:00
|
|
|
|
{
|
|
|
|
|
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"..
|
2016-11-21 12:41:36 +01:00
|
|
|
|
public class OrderItem
|
|
|
|
|
:Entity
|
|
|
|
|
{
|
2016-12-14 18:23:57 +01:00
|
|
|
|
public int ProductId { get; set; }
|
2016-11-21 12:41:36 +01:00
|
|
|
|
|
2016-12-14 18:23:57 +01:00
|
|
|
|
public string ProductName { get; set; }
|
2016-11-21 12:41:36 +01:00
|
|
|
|
|
2016-12-17 14:41:16 +01:00
|
|
|
|
public string PictureUrl { get; set; }
|
|
|
|
|
|
2016-12-14 18:23:57 +01:00
|
|
|
|
public int OrderId { get; set; }
|
2016-11-21 12:41:36 +01:00
|
|
|
|
|
2016-12-14 18:23:57 +01:00
|
|
|
|
public decimal UnitPrice { get; set; }
|
2016-11-21 12:41:36 +01:00
|
|
|
|
|
2016-12-14 18:23:57 +01:00
|
|
|
|
public decimal Discount { get; set; }
|
2016-11-21 12:41:36 +01:00
|
|
|
|
|
2016-12-14 18:23:57 +01:00
|
|
|
|
public int Units { get; set; }
|
2016-11-21 12:41:36 +01:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|