Hi!
Nowadays I'm using two connection strings, because I use the membership/role providers that also need a connection string defined.
I'd like to use the same connectionString above to NHibernate.
Is it possible?
I've tried this, but I got an error:
Code:
<connectionStrings>
<add name="MySQLConnectionString" connectionString="..."/>
</connectionStrings>
<nhibernate>
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
<add key="hibernate.dialect" value="NHibernate.Dialect.MySQLDialect"/>
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.MySqlDataDriver"/>
<add key="hibernate.connection.connection_string" value="MySQLConnectionString"/>
</nhibernate>
The error is:
Quote:
{"cannot open connection"}
Wouldn't be interesting to use the same connString defined into the section <connectionString>?
Thanks