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 就可以了.
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 就可以了.