Does NHibernate session close db connection supplied as a parameter to OpenSession method
- by Alexey Zakharov
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