解决方案:

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

posted on 2016-05-07 22:41  miaoying  阅读(202)  评论(0)    收藏  举报