NHibernate will not understand 2 results sets. You will have to deal with
that manually.
You can turn that into two different queries and call them using multi
query, however.

On Thu, Sep 25, 2008 at 11:04 AM, Jamie Fraser <[EMAIL PROTECTED]>wrote:

>
> I'm trying to execute a stored procedure (I've also tried modifying
> this into a SQL statement and called it via a named query) which
> returns 2 result sets.
>
> First result set is the data (search results, essentially).
> Second result set is the count of results.
>
> I'm not sure if a Multiquery is the right thing to use - from what I
> understand a MQ will allow me to execute N queries in a batch and
> present single results for each one, whereas I want to execute a
> single query and get 2 results from it.
>
> Can anyone advise what to do?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to