To clarify, you can use TransactionScope, but the only robust and officially supported way is to also use the NH transaction classes inside of it.
/Oskar 2014-10-17 16:05 GMT+02:00 Ricardo Peres <[email protected]>: > I'd go for the optimistic concurrency approach. > BTW, don't forget that TransactionScope is not properly supported by > NHibernate. You should instead rely on NHibernate transactions > (session.BeginTransaction()). > > RP > > > On Thursday, October 16, 2014 2:16:47 PM UTC+1, Samuel Poirier wrote: >> >> Hello, I have posted a question on stackoverflow >> <http://stackoverflow.com/questions/26386203/nhibernate-how-to-handle-critical-transaction-in-asp-net-mvc-action> >> . >> >> I wanted to post it here for more visibility because I think it's a >> relevant question concerning handling critical database transaction with >> possible multi-thread concurrency. >> >> Basically, I am not sure what is the best/right way to handle cases like >> this. >> >> I'd really appreciate help on this one. >> >> Thanks in advance! >> > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
