开发者

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

开发者 https://www.devze.com 2023-01-06 22:23 出处:网络
I can get NHib开发者_如何学Cernate (v2) to return and process a single SYS_REFCURSOR that contains my single resultset. Is it possible for multiple resultsets/SYS_REFCURSOR\'s in NHibernate? What woul

I can get NHib开发者_如何学Cernate (v2) to return and process a single SYS_REFCURSOR that contains my single resultset. Is it possible for multiple resultsets/SYS_REFCURSOR's in NHibernate? What would be the syntax of the .hbm.xml file to map multiple resultsets from the SYS_REFCURSOR's?

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.

0

精彩评论

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