EF更新时出错,An error occurred while updating the entries. See the inner exception for details
2014-01-01 18:50 左眼微笑右眼泪 阅读(10587) 评论(0) 编辑 收藏 举报在使用EF进行更新数据时出错,报出的异常是
“An error occurred while updating the entries. See the inner exception for details”
最开始一直不知道在哪里,可以看到这个“inner exception”,最后才发现,在异常弹出窗的下面,有一个查看详情。可以在这个页面里面看到具体的错误信息。如下:
找到了具体的错误信息,这个错误就很容易解决了。