/// <summary> /// Deprecated Method for adding a new object to the SalesOrderDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSalesOrderDetails(SalesOrderDetail salesOrderDetail) { base.AddObject("SalesOrderDetails", salesOrderDetail); }
/// <summary> /// Create a new SalesOrderDetail object. /// </summary> /// <param name="salesOrderID">Initial value of the SalesOrderID property.</param> /// <param name="salesOrderDetailID">Initial value of the SalesOrderDetailID property.</param> /// <param name="orderQty">Initial value of the OrderQty property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="specialOfferID">Initial value of the SpecialOfferID property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="unitPriceDiscount">Initial value of the UnitPriceDiscount property.</param> /// <param name="lineTotal">Initial value of the LineTotal property.</param> /// <param name="rowguid">Initial value of the rowguid property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static SalesOrderDetail CreateSalesOrderDetail(global::System.Int32 salesOrderID, global::System.Int32 salesOrderDetailID, global::System.Int16 orderQty, global::System.Int32 productID, global::System.Int32 specialOfferID, global::System.Decimal unitPrice, global::System.Decimal unitPriceDiscount, global::System.Decimal lineTotal, global::System.Guid rowguid, global::System.DateTime modifiedDate) { SalesOrderDetail salesOrderDetail = new SalesOrderDetail(); salesOrderDetail.SalesOrderID = salesOrderID; salesOrderDetail.SalesOrderDetailID = salesOrderDetailID; salesOrderDetail.OrderQty = orderQty; salesOrderDetail.ProductID = productID; salesOrderDetail.SpecialOfferID = specialOfferID; salesOrderDetail.UnitPrice = unitPrice; salesOrderDetail.UnitPriceDiscount = unitPriceDiscount; salesOrderDetail.LineTotal = lineTotal; salesOrderDetail.rowguid = rowguid; salesOrderDetail.ModifiedDate = modifiedDate; return salesOrderDetail; }