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>
该文章我在博客园发表过,详细请大家查看下面连接
http://www.cnblogs.com/beniao/archive/2007/11/18/963392.html
本文介绍了如何安装 Castle Project 的 1.0-rc2 版本并配置 Web.Config 文件来使用 ActiveRecord 框架。具体步骤包括添加必要的 section 节点及设置连接字符串等属性。

714

被折叠的 条评论
为什么被折叠?



