📜  如何使用实体框架 5 更新记录 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:49.944000             🧑  作者: Mango

代码示例1
BY LOVE SINGH.

employeeDBEntities.tblEmployee.Attach(objTblEmployee);
employeeDBEntities.Entry(objTblEmployee).State = EntityState.Modified;
employeeDBEntities.SaveChanges();