Batch update returned unexpected row count from update 错误解决方法

在 NHibernate 出现以下错误,主要是为 自增长 键的属性 赋了值造成的。

NHibernate.StaleStateException was unhandled
HResult=-2146232832
Message=Batch update returned unexpected row count from update; actual row count: 0; expected: 1

 

posted @ 2012-06-26 15:31  Jun六月  阅读(1324)  评论(0编辑  收藏  举报