Skip to content

Instantly share code, notes, and snippets.

@KozzyKoder
Created March 3, 2014 16:27
Show Gist options
  • Save KozzyKoder/9328656 to your computer and use it in GitHub Desktop.
Save KozzyKoder/9328656 to your computer and use it in GitHub Desktop.
NNibernate-Postgres config
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.PostgreSQLDialect</property>
<property name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</property>
<property name="connection.connection_string_name">TravelRoutesDatabase</property>
<property name="proxyfactory.factory_class">NHibernate.Bytecode.DefaultProxyFactoryFactory, NHibernate</property>
<mapping assembly="DataAccess"/>
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment