Achieving NHibernate Nested Transactions Behavior

后端 未结 2 1585
时光说笑
时光说笑 2021-01-06 08:58

I\'m trying to achieve some kind of nested transaction behavior using NHibernate\'s transaction control and FlushMode options, but things got a little bit confusing after to

2条回答
  •  北海茫月
    2021-01-06 09:17

    NHibernate does not support nested transactions. Each ISession can have at most one active transaction. I'm not sure what you;re trying to accomplish because your example scenario doesn't make sense to me. Committing transaction 1 after the insert would have the same effect.

提交回复
热议问题