Hi Lis,
You didn't mention which version of NHibernate you are using, but I'll assume it's 1.2.
In addition, if your tnsnames.ora has that definition, then I suspect you can refer to 'TEST' directly in the connection string (i.e., you can type tnsping TEST, and it works ok).
An example config file might look like:
Code:
<configuration>
<configSections>
<section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</configSections>
<nhibernate>
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
<add key="hibernate.dialect" value="NHibernate.Dialect.OracleDialect"/>
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleClientDriver"/>
<add key="hibernate.connection.connection_string" value="Data Source=TEST;User Id=u;Password=p;"/>
</nhibernate>
</configuration>
Regards,
Richard