开发者

NHibernate - Store/Export Stored Procedure Definition

开发者 https://www.devze.com 2023-03-01 16:04 出处:网络
I know that it is possible to execute stored procedures via NHibernate and map the return values to data objects. However, I use NHibernate\'s schema export capabilities to generate/update my database

I know that it is possible to execute stored procedures via NHibernate and map the return values to data objects. However, I use NHibernate's schema export capabilities to generate/update my database schema and was wondering if there is any way to store my procedure text in NHibernate and, when exporting the database schema, the stored p开发者_JS百科rocedure definition will also be exported. This would be extremely useful in allowing my devs to get up and running quickly with a local sandbox...


Auxiliary Database Objects

<database-object>
  <create>CREATE PROCEDURE MyProc blah blah...</create>
  <drop>DROP PROCEDURE MyProc</drop>
</database-object>
0

精彩评论

暂无评论...
验证码 换一张
取 消