It's working fine for me... using a recent trunk build from hornget.
I defined the entities you are using there and mapped with ConfORM without
any customizations...

   Diego


On Fri, Jun 25, 2010 at 16:30, Sam <[email protected]> wrote:

>
> Hi,
>
> Let's say I want to query a list of customers, and I want customer
> orders to be eager loaded. I call the Fetch extension method and use
> the Orders property. This works well.
>
> Now if I have some item associated with each customer order that I
> want to eager load also. Let's say a Supplier associated with each
> order. From what I understand of the examples I should do something
> like:
>
> session.Query<Customer>().FetchMany(c => c.Orders).ThenFetch(o =>
> o.Supplier);
>
> When I try to do this I get the following error at runtime: "A fetch
> request must be a simple member access expression; 'Convert(x.Orders)'
> is a UnaryExpression instead.\r\nNom du paramètre :
> relatedObjectSelector"
>
> The problem seems to be caused by the FetchMany method. My code is
> actually in VB if it changes anything (it's a direct translation of C#
> code above).
>
> If you have any idea why this error happens, or if you can think of a
> workaround, I'd be extremely grateful!
>
> Sam
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
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