When I invoke the SessionFactory.OpenSession() method a session is created, which contains a open connection to the database.
Sometimes I have the need to open a “lazy” session, meaning : I want a session to be created, but I do not want the connection to be opened yet. Only on the first query, or insert or update statement should the session connect to the db. Is this possible in nhibernate throught configuration or not?
Thanks
Is far as I know when NHibernate session is created it doesn’t open connection to the data base.