Exemplo n.º 1
0
 /// <summary>
 /// Create a new Invoice object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="total">Initial value of the Total property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 public static Invoice CreateInvoice(global::System.Int32 id, global::System.Decimal total, global::System.Int32 customerId)
 {
     Invoice invoice = new Invoice();
     invoice.Id = id;
     invoice.Total = total;
     invoice.CustomerId = customerId;
     return invoice;
 }
Exemplo n.º 2
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);
 }