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