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后问题解决。
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后问题解决。
相关文章推荐
- could not be set to a 'string' value. You must set this property to a non-null value of type
- The type Database cannot be constructed. You must configure the container to supply this value.
- Null value was assigned to a property of primitive type setter ,hibernate int型数据无法读取 hiberante读int
- The type String cannot be constructed. You must configure the container to supply this value.
- 关于Hibernate中的int和float数据及Null value was assigned to a property of primitive type setter of
- hibernate Null value was assigned to a property of primitive type setter of 错误解决
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- null value was assigned to a property of primitive type setter of原因急解决方法
- Null value was assigned to a property of primitive type setter of com.ibeifeng.po.Employee.modifyTim
- Null value was assigned to a property of primitive type setter of XXX
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.chen.vo.Dept.parentId
- Null value was assigned to a property of primitive type setter of com.sq.entity.Professor.comm
- [转]Null value was assigned to a property of primitive type setter of"原因及解决方法
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- Null value was assigned to a property of primitive type setter of
- 异常处理:Null value was assigned to a property of primitive type setter of"原因及解决方案
- Null value was assigned to a property of primitive type setter of
- hibernate Null value was assigned to a property of primitive type setter
- null value was assigned to a property of primitive type setter of原因急解决方法