Nels_P_Olsen wrote:
I've created some DLLs that use NHibernate, that get loaded and used by 3rd party applications. One of these applications is Visual Studio. What is the recommended way of telling NHibernate where to find the config info, particularly when you do not own the running application? Currently I'm putting config info into the 3rd party app's .exe.config, but that's just a temporary kludge.
In the .exe application configuration file, you could store the path to the session factory configuration file instead of all of the session factory configuration. There is an overload for the Configuration.Configure() method that takes a path to this file.
The format of the file is described in section 3.8 in the documentation:
http://www.hibernate.org/hib_docs/nhibe ... ation.html.