简体   繁体   English

如何使用NHibernate从Oracle存储过程处理多个结果集/ SYS_REFCURSOR

[英]How to use NHibernate to process multiple resultsets/SYS_REFCURSOR from Oracle stored procedure

I can get NHibernate (v2) to return and process a single SYS_REFCURSOR that contains my single resultset. 我可以让NHibernate(v2)返回并处理包含我的单个结果集的单个SYS_REFCURSOR。 Is it possible for multiple resultsets/SYS_REFCURSOR's in NHibernate? NHibernate中是否可能有多个结果集/ SYS_REFCURSOR? What would be the syntax of the .hbm.xml file to map multiple resultsets from the SYS_REFCURSOR's? .hbm.xml文件用来映射SYS_REFCURSOR的多个结果集的语法是什么?

thanks. 谢谢。

I am fairly sure the answer is no, this isn't possible. 我相当确定答案是否定的,这是不可能的。 You have two options to work around this: use a MultiQuery against two stored procs to batch the calls or 2) use the database connection and ADO.NET. 您可以通过以下两种方法解决此问题:对两个存储的proc使用MultiQuery来批量处理调用,或者2)使用数据库连接和ADO.NET。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM