/// <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_Detail order_Detail) { base.AddObject("Order_Details", order_Detail); }
/// <summary> /// Create a new Order_Detail 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_Detail CreateOrder_Detail(global::System.Int32 order_ID, global::System.Int32 product_ID, global::System.Decimal unit_Price, global::System.Int16 quantity, global::System.Single discount) { Order_Detail order_Detail = new Order_Detail(); order_Detail.Order_ID = order_ID; order_Detail.Product_ID = product_ID; order_Detail.Unit_Price = unit_Price; order_Detail.Quantity = quantity; order_Detail.Discount = discount; return order_Detail; }