/// <summary> /// Deprecated Method for adding a new object to the Order_Details EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrder_Details(Order_Details order_Details) { base.AddObject("Order_Details", order_Details); }
/// <summary> /// Create a new Order_Details object. /// </summary> /// <param name="order_ID">Initial value of the Order_ID property.</param> /// <param name="product_ID">Initial value of the Product_ID property.</param> /// <param name="unit_Price">Initial value of the Unit_Price property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="discount">Initial value of the Discount property.</param> public static Order_Details CreateOrder_Details(global::System.Int32 order_ID, global::System.Int32 product_ID, global::System.Decimal unit_Price, global::System.Int16 quantity, global::System.Single discount) { Order_Details order_Details = new Order_Details(); order_Details.Order_ID = order_ID; order_Details.Product_ID = product_ID; order_Details.Unit_Price = unit_Price; order_Details.Quantity = quantity; order_Details.Discount = discount; return order_Details; }