My NHibernate configuration is set up using hibernate.cfg.xml, and now I am trying to implement Rhino.Seucrity, and for its configuration I need to retrieve a NHibernate.Cfg.Configuration instance. Now i was wondering if it is possible to retrieve the configuration instance that hibernate.cfg.xml produces?
-
Have you placed NHibernate-configuration section in web.config or in a seperate file?Pradeep– Pradeep2010-12-16 18:21:54 +00:00Commented Dec 16, 2010 at 18:21
-
4Well, somewhere in your code you must be creating the Configuration object and building the ISessionFactory. Get it from there...dotjoe– dotjoe2010-12-16 19:26:03 +00:00Commented Dec 16, 2010 at 19:26
-
@dotjoe OMG, im the biggest idiot ever! Post that as an answer so i can accept it :) I didnt realise Configuration implements ISessionFactory, i thought they were completely sepereate. Thanks!Michal Ciechan– Michal Ciechan2010-12-17 10:21:51 +00:00Commented Dec 17, 2010 at 10:21
Add a comment
|