/// <summary> /// Deprecated Method for adding a new object to the OrderLineItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrderLineItems(OrderLineItem orderLineItem) { base.AddObject("OrderLineItems", orderLineItem); }
/// <summary> /// Create a new OrderLineItem object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="fulfilmentDate">Initial value of the FulfilmentDate property.</param> /// <param name="units">Initial value of the Units property.</param> /// <param name="pricePerUnit">Initial value of the PricePerUnit property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="adminFee">Initial value of the AdminFee property.</param> /// <param name="pivotExchangeRate">Initial value of the PivotExchangeRate property.</param> /// <param name="globalPivotExchangeRate">Initial value of the GlobalPivotExchangeRate property.</param> /// <param name="currencyId">Initial value of the CurrencyId property.</param> /// <param name="itemId">Initial value of the ItemId property.</param> /// <param name="orderId">Initial value of the OrderId property.</param> public static OrderLineItem CreateOrderLineItem(global::System.Int32 id, global::System.DateTime fulfilmentDate, global::System.Int32 units, global::System.Double pricePerUnit, global::System.Double amount, global::System.Double adminFee, global::System.Double pivotExchangeRate, global::System.Double globalPivotExchangeRate, global::System.String currencyId, global::System.Int32 itemId, global::System.Int32 orderId) { OrderLineItem orderLineItem = new OrderLineItem(); orderLineItem.Id = id; orderLineItem.FulfilmentDate = fulfilmentDate; orderLineItem.Units = units; orderLineItem.PricePerUnit = pricePerUnit; orderLineItem.Amount = amount; orderLineItem.AdminFee = adminFee; orderLineItem.PivotExchangeRate = pivotExchangeRate; orderLineItem.GlobalPivotExchangeRate = globalPivotExchangeRate; orderLineItem.CurrencyId = currencyId; orderLineItem.ItemId = itemId; orderLineItem.OrderId = orderId; return orderLineItem; }