Unable to cast object of type 'System.Int32' to type 'System.String'(无法将int类型识别成stirng类型)

报错信息:Unable to cast object of type 'System.Int32' to type 'System.String'

解决方案:其实就是在定义Model的时候的字段数据类型与数据库定义的数据类型不匹配,改成跟数据库的一样即可!

0

 

 

posted on 2022-07-28 17:23  El飞燕  阅读(4208)  评论(0编辑  收藏  举报

导航