you wouldn't wrap the commit. you would wrap the entire transaction.
try
open session
try
begin transaction
do work
commit transaction
catch
rollback transaction
throw
finally
dispose of transaction
finally
dispose of session
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/9sAJ8E1_IXUJ.
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.