/// <summary>
 /// Deprecated Method for adding a new object to the InvoiceItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInvoiceItems(InvoiceItem invoiceItem)
 {
     base.AddObject("InvoiceItems", invoiceItem);
 }
 /// <summary>
 /// Create a new InvoiceItem object.
 /// </summary>
 /// <param name="invoiceID">Initial value of the InvoiceID property.</param>
 /// <param name="itemID">Initial value of the ItemID property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="count">Initial value of the Count property.</param>
 /// <param name="id">Initial value of the ID property.</param>
 public static InvoiceItem CreateInvoiceItem(global::System.Int64 invoiceID, global::System.Int64 itemID, global::System.Int32 price, global::System.Int32 count, global::System.Int64 id)
 {
     InvoiceItem invoiceItem = new InvoiceItem();
     invoiceItem.InvoiceID = invoiceID;
     invoiceItem.ItemID = itemID;
     invoiceItem.Price = price;
     invoiceItem.Count = count;
     invoiceItem.ID = id;
     return invoiceItem;
 }