예제 #1
0
 public int Update(Product_Supplier obj)
 {
     this.context.Product_Suppliers.Attach(obj);
     context.Entry(obj).State = System.Data.EntityState.Modified;
     return(this.context.SaveChanges());
 }
예제 #2
0
 public int Update(Product product)
 {
     this.context.Products.Attach(product);
     context.Entry(product).State = System.Data.EntityState.Modified;
     return(this.context.SaveChanges());
 }
예제 #3
0
 public int Update(Sale sale)
 {
     this.context.Sales.Attach(sale);
     context.Entry(sale).State = System.Data.EntityState.Modified;
     return(this.context.SaveChanges());
 }