As far as i have read discussions on the topic, that works only if you start an NH transaction and it enlists itself. But if you don't use NH transactions this doesn't (always at least) work.
Gustavo. On Thu, Nov 19, 2009 at 1:24 AM, sravan <[email protected]>wrote: > At the service layer we start a transaction using System.Transaction > and the service method calls the DAO methods. I am not using > transactions from NHibernate. Is NHibernate aware of > System.Transactions. whether we will be able to take the adavantage of > first level cache with out using Nhibernate Transactions. Please > advice > > The service method looks something like this > > using (TransactionScope scope = new TransactionScope()) > { > //call DAO1 > //call DAO2 > //call DAO3 > > scope.Complete(); > } > > -- > > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=. > > > -- 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=.
