1、不定时会出现数据库字段类型不正常。
2、检查了数据库和实体类型都没有问题。
3、不止一个接口,其他接口也会爆类似的错误
4、十分诡异,重启应用池就好了,但过几天又出现了
The 'O_VisitDate' property on 'cordEntity' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.DateTime'.
类型推断出现问题了吧,int.parse()需要是字符串,你给定的值被推断为时间DateTime了?