Skip to content

Instantly share code, notes, and snippets.

@orjan
Created October 6, 2009 20:59
Show Gist options
  • Save orjan/203410 to your computer and use it in GitHub Desktop.
Save orjan/203410 to your computer and use it in GitHub Desktop.
NH DB configuration
<!-- Postgre Nhibernate -->
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</property>
<property name="connection.connection_string">
Server=localhost;Database=sharpdojjo;User ID=postgres;Password=xxx;
</property>
<property name="dialect">NHibernate.Dialect.PostgreSQL82Dialect</property>
<property name="show_sql">false</property>
<property name="connection.release_mode">auto</property>
<property name="adonet.batch_size">500</property>
<property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
<property name="hbm2ddl.auto">create</property>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment