Using with ActiveRecord
History Key
- New content
Removed content
Recent Versions
Choose two versions to compare, or click the link to view it.
LinielLeniel 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.