Hi,
I've recently upgraded my Linq provider to the new AST one.

With the previous provider I was using linq to do "inline projections
to my DTO"

e.g.
from o in Session.Query<MyObject>()
select new MyObjectDTO {
Name = o.Name,
SubName = o.OtherObject.Name,
Sub2NAme = o.OtherObject2.Name
}

and this would generate a SELECT o.Name, sn1.Name, sn2.Name FROM .....
JOIN.... JOIN.... statement.

Once I upgraded my provider I found a lot of select statements being
fired off. (My projected object is more complex than above).

I have come accross Fetch/FetchMany, which might help with the number
of queries, but as far as I can tell it means the full object will
come back for each flattened field I require.

Is there a way I can achieve this with the new provider?

Thanks,
Chris

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