When does Nhibernate makes connection wiht database ?
When does Nhibernate makes first connection wiht database ?
while calling BuildSessionFactory() method or OpenSession()?
Kind Regards,
Deepak
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by James Gregory on 03 Aug, 2010 02:39 PM
Neither. NHibernate makes a connection to the database when a query is executed (depending if you're using caching) and when you flush a session or commit a transaction. I suggest you read the NHibernate documentation, Fluent NHibernate is a mapping framework.
Paul Batum resolved this discussion on 05 Aug, 2010 01:45 PM.