我试图做一个简单的更新,但我能为我的生活做些什么是错的。
我有以下的法典目前尚未奏效,我根本不希望所有法典道路都恢复价值。
public List<tblWeight> UpdateFeedback(string memberid, string locationid, int prikey, string feedback)
{
MyEntities updatefeedback = new MyEntities();
tblWeight newfeedback = (from q in updatefeedback.tblWeights
where q.MemberId == memberid &&
q.LocationId == locationid &&
q.PriKey == prikey
select q).SingleOrDefault();
updatefeedback.tblWeights.AddObject(newfeedback);
updatefeedback.SaveChanges();
}
基本上,我正试图根据条款的哪些内容,在拖拉机内更新反馈栏。
任何人都能够指出,我会错过哪儿......dr!
- Sorry - the previous try/catch was legacy.