if I can't manage it in ASP.NET I must throw a lot of applications... what is strange is that those application are working since long time. Do you know why ?
2009/10/30 kor <[email protected]> > > for what i understand that works only in java becouse in asp.net with > httpmodule we can't do samething as > > using(ITransaction t = ***) > { > ExecuteWebRequest() > t.Commit(); > } > > ie at the end of the request we cannot know if we must commit or > rollback becouse we don't know if an exception has been thrown; > so we must always commit if the transaction is active at request_end > and always remember to wrap every service method that writes data in a > try > { > daoA.Save... > daoB.Save.. > } > catch > { > CurrentTransaction.RollBack(); > } > > > it's more simple to use spring where i only need to set a transaction > (Readonly=false) on the specific methods that calls write operations. > > if there's another patter to use transaction per request with only nh- > core that simplify that i'm happy to listen becouse i din't found it > > thanks > > > -- 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 -~----------~----~----~----~------~----~------~--~---
