When does Nhibernate makes connection wiht database ?

Deepak's Avatar

Deepak

03 Aug, 2010 02:11 PM via web

When does Nhibernate makes first connection wiht database ?
while calling BuildSessionFactory() method or OpenSession()?

Kind Regards,
Deepak

  1. Support Staff 2 Posted by James Gregory on 03 Aug, 2010 02:39 PM

    James Gregory's Avatar

    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.

  2. Paul Batum resolved this discussion on 05 Aug, 2010 01:45 PM.

Comments are currently closed for this discussion. You can start a new one.