/// <summary> /// Deprecated Method for adding a new object to the SalesDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSalesDetails(SalesDetail salesDetail) { base.AddObject("SalesDetails", salesDetail); }
/// <summary> /// Create a new SalesDetail object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="salesID">Initial value of the SalesID property.</param> /// <param name="itemID">Initial value of the ItemID property.</param> /// <param name="qty">Initial value of the Qty property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="subTotal">Initial value of the SubTotal property.</param> public static SalesDetail CreateSalesDetail(global::System.Int32 id, global::System.Int32 salesID, global::System.Int32 itemID, global::System.Double qty, global::System.Decimal unitPrice, global::System.Decimal subTotal) { SalesDetail salesDetail = new SalesDetail(); salesDetail.ID = id; salesDetail.SalesID = salesID; salesDetail.ItemID = itemID; salesDetail.Qty = qty; salesDetail.UnitPrice = unitPrice; salesDetail.SubTotal = subTotal; return salesDetail; }