Does NHibernate session close db connection supplied as a parameter to OpenSession method

Posted by Alexey Zakharov on Stack Overflow See other posts from Stack Overflow or by Alexey Zakharov
Published on 2010-05-28T05:39:57Z Indexed on 2010/05/28 5:51 UTC
Read the original article Hit count: 213

Filed under:

Hi guys,

I wonder if Nihbernate close db connection supplied as a parameter to OpenSession method.

Example

using(var session = sessionFactory.OpenSession(connection)) {

}

I want connection to be disposed with the session.

Best regards, Alexey Zakharov

© Stack Overflow or respective owner

Related posts about nhibernate