예제 #1
0
 //update metodu
 public static void UpdateProduct(Product product)
 {
     using (BilgeAdamContext db = new BilgeAdamContext())
     {
         db.Entry(product).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
예제 #2
0
 public static void UpdateSupplier(Supplier supplier)
 {
     using (BilgeAdamContext db = new BilgeAdamContext())
     {
         db.Entry(supplier).State = EntityState.Modified;
         db.SaveChanges();
     }
 }