Joined: Thu Feb 05, 2009 3:58 am Posts: 1
|
Hi all,
We just upgraded to the latest version of NHibernate and noticed the new IStatelessSession. We are wondering if it would be wise to use this IStatelessSession everywhere instead of a normal session. Would there be a performance gain?
We always use detached objects. For example if I would change the name of a person in the database I would call a GetPersonById method. In this method a new session is created the person is fetched and the session is closed. Then I put a new name in the name property of the person object. To save the person I pass the person object to a save method which will create a new session and performs a update.
Thanks!
|
|