Esempio n. 1
0
 public static void Save <T>(PizzaBoxContext context, T ThingToSave) where T : class
 {
     context.Add(ThingToSave);
     context.SaveChanges();
 }
Esempio n. 2
0
 public void SaveCustomer(Customer customer)
 {
     _ctx.Add(customer);
     SaveChanges();
 }