Using the NH Profiler i got this message: "Alert: Use of implicit transactions is discouraged" (Read description of error here: http://nhprof.com/Learn/Alert?name=DoNotUseImplicitTransactions )
Read it On Wed, Apr 8, 2009 at 4:38 PM, Fabio Maulo <[email protected]> wrote: > I mean ...NH has a dangerous *Auto-Flush* using lazy=extra add a even more > dangerous *Auto-commit* is something I, personally, dislike. > > 2009/4/8 Fabio Maulo <[email protected]> > > commit a transaction after load a collection ?No thanks. >> >> NH has a dangerous Flush using lazy=extra add a even more dangerous commit >> is something I, personally, dislike. >> >> 2009/4/8 Fernando Zago <[email protected]> >> >> something like this: >>> Find the session; >>> Check if it already got an alive transaction; >>> If NOT, Creates transaction - Set a internal Boolean variable to know >>> that transactions created by nHibernate >>> (maybe start an try/catch) >>> Load Entity Data; >>> Check that internal Boolean variable >>> if TRUE set transaction Commit() >>> (catch) >>> Check that internal Boolean variable >>> RollBack() >>> >>> >>> >> >> >> -- >> Fabio Maulo >> > > > > -- > Fabio Maulo > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
