NHibernate - ISession

Posted by Guilherme Cardoso on Stack Overflow See other posts from Stack Overflow or by Guilherme Cardoso
Published on 2010-06-12T21:14:31Z Indexed on 2010/06/12 21:22 UTC
Read the original article Hit count: 232

Filed under:

Hi

About the declaration of ISession.

Should we close the Session everytime we use it, or should we keep it open?

I'm asking this because in manual of NHibernate (nhforge.org) they recommend us to declare it once in Application_Start for example, but i don't know if we should close it everytime we use.

Thanks

© Stack Overflow or respective owner

Related posts about nhibernate