On Thu, May 6, 2010 at 11:12 AM, Davy Brion
<ral...@davybrion.com> wrote:
Well for starters, it just feels pointless to use an NHibernate Transaction if TransactionScope is supposed to take care of that for you. And let's be honest here, that's just how it works with probably every other data layer out there in the .NET world. Why should we be different?
Well... we are different in many cases and probably our differences are the reason of NH success.
Perhaps in this case we can make an exception and try to be equals to others.
Opening a session we can check if there is an Ambient Transaction and, if so, begin a NH's transaction by default; this behavior will have a performance issue when the application does not use TransactionScope everywhere.
How we will manage the need of "nested" transactions will be another matter.
The other possibility is try to fix the actual behavior.
In any case we need a specific section in our official reference.
--
Fabio Maulo