partial void DeleteGoods(Goods instance);
partial void UpdateGoods(Goods instance);
partial void InsertGoods(Goods instance);
public void EditGoods(Goods goods) { db.Entry(goods).State = EntityState.Modified; db.SaveChanges(); }
public void DeleteGoods(Goods goods) { db.Goods.Remove(goods); db.SaveChanges(); }
public void AddGoods(Goods goods) { db.Goods.Add(goods); db.SaveChanges(); }