/// <summary> /// Deprecated Method for adding a new object to the DeliveryDocumentItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDeliveryDocumentItems(DeliveryDocumentItem deliveryDocumentItem) { base.AddObject("DeliveryDocumentItems", deliveryDocumentItem); }
/// <summary> /// Create a new DeliveryDocumentItem object. /// </summary> /// <param name="code">Initial value of the Code property.</param> /// <param name="terminalCode">Initial value of the TerminalCode property.</param> /// <param name="deliveryDocumentHeaderCode">Initial value of the DeliveryDocumentHeaderCode property.</param> /// <param name="terminalToCode">Initial value of the TerminalToCode property.</param> /// <param name="batch">Initial value of the Batch property.</param> /// <param name="productCode">Initial value of the ProductCode property.</param> /// <param name="productMasterCode">Initial value of the ProductMasterCode property.</param> /// <param name="productByWeight">Initial value of the ProductByWeight property.</param> /// <param name="priceValue">Initial value of the PriceValue property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> public static DeliveryDocumentItem CreateDeliveryDocumentItem(global::System.Int32 code, global::System.Int32 terminalCode, global::System.Int32 deliveryDocumentHeaderCode, global::System.Int32 terminalToCode, global::System.String batch, global::System.Int32 productCode, global::System.String productMasterCode, global::System.Boolean productByWeight, global::System.Double priceValue, global::System.Double quantity) { DeliveryDocumentItem deliveryDocumentItem = new DeliveryDocumentItem(); deliveryDocumentItem.Code = code; deliveryDocumentItem.TerminalCode = terminalCode; deliveryDocumentItem.DeliveryDocumentHeaderCode = deliveryDocumentHeaderCode; deliveryDocumentItem.TerminalToCode = terminalToCode; deliveryDocumentItem.Batch = batch; deliveryDocumentItem.ProductCode = productCode; deliveryDocumentItem.ProductMasterCode = productMasterCode; deliveryDocumentItem.ProductByWeight = productByWeight; deliveryDocumentItem.PriceValue = priceValue; deliveryDocumentItem.Quantity = quantity; return deliveryDocumentItem; }