Cesar De la Torre 67e94c3c45 - Consuming Ordering.API microservice from WebMVC app
- SQL DB updated with EF Migrations
- build-images.ps1 updated
2016-10-10 21:52:57 -07:00

34 lines
962 B
C#

using System;
using System.Runtime.Serialization;
using Microsoft.eShopOnContainers.Services.Ordering.Domain.SeedWork;
namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel
{
public class OrderItem : Entity
{
public OrderItem() { } // Infrastructure. EF might need a plain constructor. Do not use.
//NOTE: The OrderItem Id (Id) comes from the Entity base class
public Guid ProductId { get; set; }
public Guid OrderId { get; set; }
public decimal UnitPrice { get; set; }
public string ProductName { get; set; }
public int Quantity { get; set; }
public decimal Discount { get; set; }
public int FulfillmentRemaining { get; set; }
public override string ToString()
{
return String.Format("Product Id: {0}, Quantity: {1}, Fulfillment Remaing: {2}", this.Id, this.Quantity, this.FulfillmentRemaining);
}
}
}