Skip to content

Instantly share code, notes, and snippets.

@lest-xu
Last active February 8, 2019 14:26
Show Gist options
  • Save lest-xu/560b57c78f474fa43029e546b47147bd to your computer and use it in GitHub Desktop.
Save lest-xu/560b57c78f474fa43029e546b47147bd to your computer and use it in GitHub Desktop.
namespace Angular6Mvc5.Models
{
public class OrderProducts
{
public int OrderId { get; set; }
public int ProductId { get; set; }
public double UnitPrice { get; set; }
public double Quantity { get; set; }
public Product Product { get; set; }
public Order Order { get; set; }
public OrderProducts(DataRow row)
{
this.OrderId = Convert.ToInt32(row["OrderId"]);
this.ProductId = Convert.ToInt32(row["ProductId"]);
this.UnitPrice = Convert.ToDouble(row["UnitPrice"]);
this.Quantity = Convert.ToDouble(row["Quantity"]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment