更新条目时出错

解决方案:

在catch中写入throw ex.InnerException; 抛出具体异常信息,发现是新增时有个外键数据为null,新增时写入默认值就ok了。

原文地址:https://www.cnblogs.com/miaoying/p/5469412.html