It is a feature that would be nice to add to NHibernate though. The auto 
creation of NHibernate transaction if an ambient transaction is detected.  
Fabio asked me to put in a Jira a while back but Jira was down then and I 
forgot to do it.  I'll submit one today.

-Carlos

 

Practice makes perfect, but if no one is perfect, why practice?




Date: Wed, 21 Apr 2010 10:38:02 -0300
Subject: Re: [nhusers] Re: Connection leak when ambient transaction aborts
From: [email protected]
To: [email protected]

Norman,
It's simple: your assumption is not correct.NHibernate transactions 
automatically enlist in the scope transactions, but they are still needed (i.e. 
having a TransactionScope does NOT create a NH transaction)
 
    Diego



On Wed, Apr 21, 2010 at 09:57, Norman <[email protected]> wrote:

Diego - can you please explain why both "new TransactionScope()" and

"session.BeginTransaction()" are required? My understanding is that

when using TransactionScope there is no need to create a transaction

with the session as one is created automatically.



Thanks.



--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.

To post to this group, send email to [email protected].

To unsubscribe from this group, send email to 
[email protected].

For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.









-- 

You received this message because you are subscribed to the Google Groups 
"nhusers" group.

To post to this group, send email to [email protected].

To unsubscribe from this group, send email to 
[email protected].


For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.
                                          

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to