query.List()[0] as Blog
On Tue, Apr 26, 2011 at 6:11 AM, Vital NH <[email protected]>wrote:
> The documentation says:
>
> Blog blog = s.CreateMultiQuery()
> .Add("select b from Blog b left join fetch b.Users where b.Id
> = :id")
> .Add("select b from Blog b left join fetch b.Posts where b.Id
> = :id")
> .SetInt32("id", 123)
> .UniqueResult<Blog>();
>
> This would let me accomplish the task. However, to my surprise there's
> no such method as .UniqueResult<>() in the multiquery class. How do I
> use this functionality?
>
> --
> 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.
>
>
--
Fabio Maulo
--
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.