Skip to content

Instantly share code, notes, and snippets.

@nelsonlaquet
Created May 30, 2012 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsonlaquet/2839536 to your computer and use it in GitHub Desktop.
Save nelsonlaquet/2839536 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<connectionStrings>
<add name="MainDb" connectionString="Data Source=THOR\SQLEXPRESS;Initial Catalog=dev-aaron-test1;Integrated Security=SSPI;" />
</connectionStrings>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string_name">MainDb</property>
<property name="hbm2ddl.auto">update</property>
<property name="generate_statistics">true</property>
</session-factory>
</hibernate-configuration>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment