Skip to content

Instantly share code, notes, and snippets.

@jayhjkwon
Created November 1, 2011 08:46
Show Gist options
  • Save jayhjkwon/1330170 to your computer and use it in GitHub Desktop.
Save jayhjkwon/1330170 to your computer and use it in GitHub Desktop.
CastleActiveRecordSample-Config XML file
<?xml version="1.0" encoding="utf-8" ?>
<activerecord>
<config>
<add
key="connection.driver_class"
value="NHibernate.Driver.SqlClientDriver" />
<add
key="dialect"
value="NHibernate.Dialect.MsSql2008Dialect" />
<add
key="connection.provider"
value="NHibernate.Connection.DriverConnectionProvider" />
<add
key="connection.connection_string"
value="Data Source=.\SQL2K8R2EXP64;Initial Catalog=MyDatabase;Persist Security Info=True;User ID=sa;Password=******" />
<add
key="proxyfactory.factory_class"
value="NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle" />
</config>
</activerecord>
@jayhjkwon
Copy link
Author

  • Important notice
    • need to set "Copy to Output Dirdctory" to "Copy Always" and "Build Action" to "Content"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment