Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Invoices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInvoices(Invoice invoice)
 {
     base.AddObject("Invoices", invoice);
 }
Example #2
0
 /// <summary>
 /// Create a new Invoice object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="customeID">Initial value of the CustomeID property.</param>
 /// <param name="totalAmount">Initial value of the TotalAmount property.</param>
 /// <param name="dateTime">Initial value of the DateTime property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 public static Invoice CreateInvoice(global::System.Int32 id, global::System.Int32 customeID, global::System.Decimal totalAmount, global::System.DateTime dateTime, global::System.Int32 userID)
 {
     Invoice invoice = new Invoice();
     invoice.ID = id;
     invoice.CustomeID = customeID;
     invoice.TotalAmount = totalAmount;
     invoice.DateTime = dateTime;
     invoice.UserID = userID;
     return invoice;
 }