InterviewSolution
Saved Bookmarks
| 1. |
How Do I Change Nhibernate Configuration Within Burrow On The Fly? |
|
Answer» you can use the following CODE: IFrameworkEnvironment FE = NEW BurrowFramework().BurrowEnvironment; NHibernate.Cfg.Configuration cfg = fe.GetNHConfig("PersistenceUnit1"); ... //do WHATEVER change you need to cfg fe.RebuildSessionFactories(); you can use the following code: IFrameworkEnvironment fe = new BurrowFramework().BurrowEnvironment; NHibernate.Cfg.Configuration cfg = fe.GetNHConfig("PersistenceUnit1"); ... //do whatever change you need to cfg fe.RebuildSessionFactories(); |
|