报错:An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code

用EF提交信息添加保存的时候出错:

An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code

从错误信息发现是类型转换的问题,有几个时间字段没赋值提交,结果保存。把却的字段补全赋值测试OK

 

posted @ 2015-10-15 17:35  IT浪潮之巅  阅读(749)  评论(0)    收藏  举报
   友情链接: 淘宝优惠券