Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created July 28, 2011 21:30
Show Gist options
  • Save johnathan-sewell/1112615 to your computer and use it in GitHub Desktop.
Save johnathan-sewell/1112615 to your computer and use it in GitHub Desktop.
Bare bones NHibernate configuration for Lexikon app
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<!-- properties -->
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string_name">db</property>
<property name="show_sql">false</property>
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
<property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
<!-- mapping files -->
<mapping assembly="lexikon.console" />
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment