how to ensure that Nhibernate is inside a transaction when saving, updating or deleting
Posted
by pms1969
on Stack Overflow
See other posts from Stack Overflow
or by pms1969
Published on 2010-05-07T14:03:06Z
Indexed on
2010/05/07
14:08 UTC
Read the original article
Hit count: 159
nhibernate
|transaction
I'd like to ensure that when I'm persisting any data to the database, using (Fluent)NHibernate, that the operations are executed inside a transaction. Is there anyway of checking that a transaction is active via an interceptor? Or any other eventing mechanism?
More specifically, I'm using the System.Transaction.TransactionScope for transaction management, and just want to stop myself from not using it.
© Stack Overflow or respective owner