Example #1
0
 /// <summary>
 /// Create a new InvoiceItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="shipped">Initial value of the Shipped property.</param>
 /// <param name="invoiceID">Initial value of the InvoiceID property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 public static InvoiceItem CreateInvoiceItem(global::System.Int32 id, global::System.Decimal price, global::System.Boolean shipped, global::System.Int32 invoiceID, global::System.Int32 amount)
 {
     InvoiceItem invoiceItem = new InvoiceItem();
     invoiceItem.Id = id;
     invoiceItem.Price = price;
     invoiceItem.Shipped = shipped;
     invoiceItem.InvoiceID = invoiceID;
     invoiceItem.Amount = amount;
     return invoiceItem;
 }
Example #2
0
 /// <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);
 }