Castle学习笔记----Castle.AvtiveRecord配置2011-12-05 博客园 Beniao一.安装程序castleproject-1.0-rc2.msi(下载安装就好!).二.修改Web.Config的配置Web.Config里需在节点<configSections>下添加配置
<section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" />
上面添加了<section>节点activerecord,接着配置activerecord的具体属性值
<activerecord> <config> <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" /> <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" /> <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" /> <add key="hibernate.connection.connection_string" value="Data Source=.;Initial Catalog=test;Integrated Security=SSPI" /> </config></activerecord>