I think you misunderstood. It's not "transform", it creates another stateless session that shares the same transaction. There is actually already a ISession.GetSession() method, it creates another session sharing the transaction AND cache.
Probably it should be called ISession.GetStatlessSession() If you would use the session factory, you would have to write sessionfactory.OpenStatelessSession(oldsession.Connection) what's really bad and shouldn't be recommended. On 27 Nov., 12:25, "Fabio Maulo" <[EMAIL PROTECTED]> wrote: > 2008/11/27 Stefan Steinegger <[EMAIL PROTECTED]> > > > > > What about a practical syntax like ISession.Stateless.CreateCriteria > > (...)? > > mmmm... I don't like it.The SessionFactory is the factory of session and a > stateFull session can't be transformed in a stateless > ISession.Stateless is ambiguous > -- > 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 -~----------~----~----~----~------~----~------~--~---
