摘要:
NHibenate hbm.xml 自动 生成 数据库表的时候 长度为1如果是1的话,就要把 column节中的 sql-type 去掉,或者 给sql-type="nvarchar(30)" 加上长度.,否则默认为1 阅读全文
posted @ 2013-03-14 18:41
Alfa
阅读(243)
评论(0)
推荐(0)
|
摘要:
NHibenate hbm.xml 自动 生成 数据库表的时候 长度为1如果是1的话,就要把 column节中的 sql-type 去掉,或者 给sql-type="nvarchar(30)" 加上长度.,否则默认为1 阅读全文
posted @ 2013-03-14 18:41
Alfa
阅读(243)
评论(0)
推荐(0)
摘要:
spring.net nhibernate 不一定是自增变量,也可能是触发器 Batch update returned unexpected row count from update; actual row count: 2; expected: 1可以查一下看是不是这个表有做了触发器.如果有,就在 begin后面加: set nocount on 在 end 前加 set nocount off 就可以了. 阅读全文
posted @ 2013-03-14 18:39
Alfa
阅读(377)
评论(0)
推荐(0)
|