I wonder if Nihbernate closes db connection supplied as a parameter to OpenSession method.
Example
using(var session = sessionFactory.OpenSession(connection))
{
}
I want the connection to be disposed with the session.
Best regards,
Alexey Zakharov
I solved my problem with customized DriverConnectionProvider
In this case I may use OpenSession method without supplying connection string as parameter.