Esempio n. 1
0
 public EventPaymentInvoiceModel(Invoice invoice, Event event_)
 {
     _invoice = invoice;
     Event = new EventModel(event_);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new Invoice object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="eventID">Initial value of the EventID property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="invoiceDate">Initial value of the InvoiceDate property.</param>
 /// <param name="invoiceNumber">Initial value of the InvoiceNumber property.</param>
 /// <param name="invoiceAddress">Initial value of the InvoiceAddress property.</param>
 /// <param name="paymentDue">Initial value of the PaymentDue property.</param>
 /// <param name="cameFrom">Initial value of the CameFrom property.</param>
 public static Invoice CreateInvoice(global::System.Guid id, global::System.Guid eventID, global::System.Double amount, global::System.DateTime invoiceDate, global::System.Int32 invoiceNumber, global::System.String invoiceAddress, global::System.DateTime paymentDue, global::System.String cameFrom)
 {
     Invoice invoice = new Invoice();
     invoice.ID = id;
     invoice.EventID = eventID;
     invoice.Amount = amount;
     invoice.InvoiceDate = invoiceDate;
     invoice.InvoiceNumber = invoiceNumber;
     invoice.InvoiceAddress = invoiceAddress;
     invoice.PaymentDue = paymentDue;
     invoice.CameFrom = cameFrom;
     return invoice;
 }
Esempio n. 3
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);
 }
Esempio n. 4
0
 public InvoiceModel(Invoice invoice)
 {
     InnerInvoice = invoice;
 }