ActiveRecord App.Config
Use ActiveRecordStarter.Initialize(typeof(Category).Assembly, ActiveRecordSectionHandler.Instance) to start up.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" />
</configSections>
<connectionStrings>
<add name="Northwind" connectionString="Data Source=.\SQLEXPRESS;Integrated Security=true;Initial Catalog=Northwind"/>
</connectionStrings>
<activerecord isWeb="false" isDebug="true">
<config>
<add key="connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
<add key="dialect" value="NHibernate.Dialect.MsSql2005Dialect" />
<add key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="connection.connection_string_name" value="Northwind" />
</config>
</activerecord>
</configuration>