Exemplo n.º 1
0
 public void UpdateCustomerInvoice(Customer_Invoice customerInvoice)
 {
     context.Entry(customerInvoice).State = EntityState.Modified;
 }
Exemplo n.º 2
0
 public void InsertCustomerInvoice(Customer_Invoice customerInvoice)
 {
     int id = context.Database.SqlQuery<int>("GetCustomerInvoiceMaxID").Single() + 1;
     context.Customer_Invoice.Add(customerInvoice);
 }