Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been mo

编程入门 行业动态 更新时间:2024-10-12 20:20:45

asp  更新数据时报错:Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded

 

原因:Check your object, does it pass Primary Key Null. This Exception is Generally due this reason only.

对象的主键为空,导致不能更新,检查你要更新的对象,查看主键是否为空,或0

转载于:https://wwwblogs/liulida/p/9896488.html

更多推荐

Database operation expected to affect 1 row(s) but actually affected 0 row(s). D

本文发布于:2023-06-13 16:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1385414.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:expected   affect   Database   operation   Data

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!