nhibernate « cfg « JPA Q&A





1. Why is nhibernate looking in /bin/debug for the hibernate.cfg.xml?    stackoverflow.com

I have a class library with all my nhibernate code (domain/mappings using fluent). Now I am just doing some simple tests in a console application, and I am getting an error saying ...

2. How do I secure my "hibernate.cfg.xml" file? (Nhibernate)    stackoverflow.com

How do I secure my "hibernate.cfg.xml" file? (Nhibernate). It currently sits in the route of the web app and can be viewed via the browser.