This took a lot of google foo and twiddling, so I figured I would post this. That, and I fully expect I'll be scratching my head a few weeks from now and wondering where I put my sample XML ;)
The configuration file below assumes that you have included the bins from the following folders included with the NHibernate download (I use 2.1.1):
<Your NHibernate install frolder>\Required_For_LazyLoading\Castle\*.dll
<Your NHibernate install frolder>\Required_Bins\*.dll
And here's the App config - Adjust as needed:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">Server=MySQLComputer;Database=MyNHibernateDatabase;Trusted_Connection=True;</property>
<property name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
</session-factory>
</hibernate-configuration>
</configuration>
Enjoy!