Castle Project ActiveRecord-它可以在SQLServer 2005中使用存储过程吗? [英] Castle Project ActiveRecord - can it use stored procedures with SQLServer 2005?

查看:44
本文介绍了Castle Project ActiveRecord-它可以在SQLServer 2005中使用存储过程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Castle Project ActiveRecord的新手. 我已经开始动手,我刚刚看到它可以为您生成模式,添加数据,向模式更新数据.

I am new to Castle Project ActiveRecord. I have starting getting my hands dirty and I just seen that It can generate for you the schema, add data, update data to the schema.

在SQL Server 2005中使用存储过程有很多优点,其中之一就是它们是预编译的.

There are advantages of using stored procedures in SQL Server 2005, one of them being they are precompiled.

在向架构中插入/编辑数据时,是否有一种方法告诉Active Record使用特定的存储过程?

Is there a way of telling Active Records to use a particular stored procedure when inserting/editing data to the schema?

推荐答案

ActiveRecord使用NHibernate.有关如何将存储过程与其一起使用的信息,请参见此处:

ActiveRecord uses NHibernate. See here for information on how to use stored procedures with it:

http://ayende.com/Blog/archive/2006 /09/18/使用NHibernateWithStoredProcedures.aspx

这篇关于Castle Project ActiveRecord-它可以在SQLServer 2005中使用存储过程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆