0

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?

3
  • Have you placed NHibernate-configuration section in web.config or in a seperate file? Commented Dec 16, 2010 at 18:21
  • 4
    Well, somewhere in your code you must be creating the Configuration object and building the ISessionFactory. Get it from there... Commented 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! Commented Dec 17, 2010 at 10:21

1 Answer 1

1

Well, somewhere in your code you must be creating the Configuration object and building the ISessionFactory. Get it from there...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.