报错: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

浙公网安备 33010602011771号