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();
}
交互式爱情