Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created December 16, 2010 13:24
Show Gist options
  • Save johnathan-sewell/743390 to your computer and use it in GitHub Desktop.
Save johnathan-sewell/743390 to your computer and use it in GitHub Desktop.
NHibernate Configuration
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.connection_string_name">MyApplication</property>
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
<property name="connection.connection_string">Server=(local);initial catalog=Database1;User Id=User1;Password=Password;</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="show_sql">true</property>
<property name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
<mapping assembly="My.Application"/>
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment