예제 #1
0
 public void UpdateInvoiceMenu(Invoice_Menu invoiceMenu)
 {
     context.Entry(invoiceMenu).State = EntityState.Modified;
 }
예제 #2
0
 public void InsertInvoiceMenu(Invoice_Menu invoiceMenu)
 {
     int id = context.Database.SqlQuery<int>("GetInvoiceMenuMaxID").Single() + 1;
     context.Invoice_Menu.Add(invoiceMenu);
 }