Skip to content

Instantly share code, notes, and snippets.

@chenbojian
Created February 6, 2016 12:09
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 chenbojian/95cea805a053d682023f to your computer and use it in GitHub Desktop.
Save chenbojian/95cea805a053d682023f to your computer and use it in GitHub Desktop.
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.MsSql2012Dialect</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\twer\Documents\Visual Studio 2015\Projects\ConsoleApplication3\ConsoleApplication3\Database1.mdf";Integrated Security=True</property>
<property name="show_sql">true</property>
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment