assetsEntities ass = new assetsEntities();public ActionResult LowValueConsumablesUpdate(tbLowValueConsumables low,string Fid){ tbLowValueConsumables item = ass.tbLowValueConsumables.Include("tbAssetType").FirstOrDefault(p => p.LVid == low.LVid); item.Amount = low.Amount; item.TotalPrice = low.TotalPrice item.tbAssetType.Fid =Fid;;//在这里报错:属性“Fid”是对象的键信息的一部分,不能修改。 ass.SaveChanges(); return View();}
- 2 回答
- 0 关注
- 544 浏览
添加回答
举报
0/150
提交
取消