public static void Eliminar(Customers c) { using (var context = new PruebaNumberOneEntities()) { context.Customers.Remove(c); context.SaveChanges(); } }
public static void Agregar(Customers c) { using (var context = new PruebaNumberOneEntities()) { context.Customers.Add(c); context.SaveChanges(); } }
public Repository() { _context = new PruebaNumberOneEntities(); }