更新时间:2023-11-28 22:08:28
这里的bind属性不会帮您把这行放在savechanges()
savechanges()
Here bind attribute'll not help you out put this line before savechanges()
db.Entry(model).Property(x => x.Password).IsModified = false
即使字段已从属性绑定中排除,该字段仍使用NULL值更新