Apologies if this has been answered elsewhere, but I can't find a
definitive answer. There is conflicting advice:

http://ayende.com/blog/1419/nhibernate-and-system-transactions-a-success
http://groups.google.com/group/nhusers/browse_thread/thread/b575a6c9b1e89042/40bb8310154f7b33?lnk=gst&q=transactionscope#40bb8310154f7b33

When using TransactionScope, do I need to use flush as well, or does
committing the transaction do the same thing? ie, does this code work:

using(var t = new TransactionScope()) {
    session.Save(myEntity);
    t.Complete();
}

Thanks,
Jon

-- 
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