您的位置:首页 > 产品设计 > UI/UE

The property on could not be set to a 'Int16' value.You must set this property to a non-null value of type ‘Int32’.”

2013-10-12 11:57 369 查看
在vs2010 EF4中查询数据总是报错:

The property on “XX” could not be set to a 'Int16' value. You must set this property to a non-null value of type ‘Int32’.”

原因及解决方法:实体对中的XX字段在数据库中的数据类型被设成了smallint型了,改成int后问题解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐