Change in Session factory lifetime #3670
-
After upgrading from 5.3.1 to 5.4.9 I now get these errors. 'Cannot access a disposed object. Object name: 'Session factory with id 17fd39285abe4bd09f684f45b4f71eef'.' It seems that something have changed in the management of the session factory lifetime or perhaps a default behavior has changed. Does anyone know what change is triggering this error? Building the session factory is very expensive given the size of our data model so we need a means to reuse it and not create a new one each time. So if the change makes reusing the session factory impossible, what is the new way to efficient manage the session factory? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
As far as I know, creating and disposing the session factory is up to the application and not something NHibernate does for you. |
Beta Was this translation helpful? Give feedback.
As far as I know, creating and disposing the session factory is up to the application and not something NHibernate does for you.