示例#1
0
 public void Update(Car t)
 {
     //var car = context.Cars.Find(t.CarId);
     //context.Cars.Attach(car);
     context.Entry <Car>(t).State = EntityState.Modified;
 }
示例#2
0
 public void Update(Seller t)
 {
     context.Entry <Seller>(t).State = EntityState.Modified;
 }