/// <summary> /// Deprecated Method for adding a new object to the LineItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLineItems(LineItem lineItem) { base.AddObject("LineItems", lineItem); }
/// <summary> /// Create a new LineItem object. /// </summary> /// <param name="lineItemTransactionID">Initial value of the LineItemTransactionID property.</param> /// <param name="reservationDetailBillingID">Initial value of the ReservationDetailBillingID property.</param> /// <param name="lineItemAmount">Initial value of the LineItemAmount property.</param> public static LineItem CreateLineItem(global::System.Int32 lineItemTransactionID, global::System.Int16 reservationDetailBillingID, global::System.Decimal lineItemAmount) { LineItem lineItem = new LineItem(); lineItem.LineItemTransactionID = lineItemTransactionID; lineItem.ReservationDetailBillingID = reservationDetailBillingID; lineItem.LineItemAmount = lineItemAmount; return lineItem; }