Version 2, last updated by Hudson Akridge at January 19, 2009 04:47 UTC
Using with ActiveRecord
Leniel has written an article about getting NQA 1.2 going with ActiveRecord. It's mostly just an app.config change. Here's how:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" ></section>
</configSections>
<activerecord>
<config>
<add key="hibernate.show_sql" value="true" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleClientDriver" />
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.dialect" value="NHibernate.Dialect.OracleDialect" />
<add key="hibernate.connection.connection_string" value="Data Source=YOUR DATA SOURCE;User ID=YOUR USER ID;Password=YOUR PASSWORD;" />
</config>
</activerecord>
</configuration>Currently, this method is not tested for NQA 2+, however it appears you should just be able to update the key registration to the NH2.0+ method, and you're good to go.