摘要:
不确定更新字段,暂时是对全部字段进行更新,原先写的是:public string Update(A order)using (Entities ctx = new Entities()) { //在A表中找到对应原记录 A old=ctx.A.Where(p => p.ID == order.ID).Single();old=order;isOK = ctx.SaveChanges();if (isOK == 1){return "更新成功";}else{return "更新失败";}}此时isOK = ctx.... 阅读全文