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的时候的字段数据类型与数据库定义的数据类型不匹配,改成跟数据库的一样即可!


报错信息:Unable to cast object of type 'System.Int32' to type 'System.String'
解决方案:其实就是在定义Model的时候的字段数据类型与数据库定义的数据类型不匹配,改成跟数据库的一样即可!