NHibernate Configuration in web.config - use existing connectionstring
Posted
by Mike C.
on Stack Overflow
See other posts from Stack Overflow
or by Mike C.
Published on 2009-11-17T15:00:37Z
Indexed on
2010/06/03
17:44 UTC
Read the original article
Hit count: 202
nhibernate
|nhibernate-configuration
I have my NHibernate configuration successfully set up in my web.config file. However, I am also using ASP.NET Membership which requires a connectionstring to be defined in the connectionStrings element. Is there a way I can make my NHibernate configuration use this value so I don't need to define the connection string twice?
TIA!
© Stack Overflow or respective owner