Last active
February 8, 2019 14:26
-
-
Save lest-xu/560b57c78f474fa43029e546b47147bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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