Testing.SalesOrderDetail.CreateSalesOrderDetail C# (CSharp) Method

CreateSalesOrderDetail() public static method

Create a new SalesOrderDetail object.
public static CreateSalesOrderDetail ( global salesOrderID, global salesOrderDetailID, global orderQty, global productID, global specialOfferID, global unitPrice, global unitPriceDiscount, global lineTotal, global rowguid, global modifiedDate ) : SalesOrderDetail
salesOrderID global Initial value of the SalesOrderID property.
salesOrderDetailID global Initial value of the SalesOrderDetailID property.
orderQty global Initial value of the OrderQty property.
productID global Initial value of the ProductID property.
specialOfferID global Initial value of the SpecialOfferID property.
unitPrice global Initial value of the UnitPrice property.
unitPriceDiscount global Initial value of the UnitPriceDiscount property.
lineTotal global Initial value of the LineTotal property.
rowguid global Initial value of the rowguid property.
modifiedDate global Initial value of the ModifiedDate property.
return SalesOrderDetail
        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;
        }