예제 #1
0
 public static void Eliminar(Customers c)
 {
     using (var context = new PruebaNumberOneEntities())
     {
         context.Customers.Remove(c);
         context.SaveChanges();
     }
 }
예제 #2
0
 public static void Agregar(Customers c)
 {
     using (var context = new PruebaNumberOneEntities())
     {
         context.Customers.Add(c);
         context.SaveChanges();
     }
 }
예제 #3
0
 public Repository()
 {
     _context = new PruebaNumberOneEntities();
 }