look into the collection batch-size mapping attribute, you can use
this load subsets of children over multiple queries. convert the
domain object to a dto and send over the wire. if you are using
automapper it could be as simple as
var entities = session
       .CreateQuery("from Entity where id in (:ids)")
       .SetParameter("ids", ids)
       .List<Entity>();
return Mapper.Map<IList<Entity>, Dto[]>(entity);

On Sep 28, 12:38 pm, João Bragança <[email protected]>
wrote:
> I am working on an application where the GUI is hosted on tablets /
> laptops as a Flex / Air application. This will call a WCF service to
> display records. Because this app needs to work disconnected - 90% of
> the time the network will not be available, it needs to grab all data
> for the current user and save it locally.
>
> I need to grab a page of entities like so:
>
> from Entity e
> left join fetch e.Children as c
> left join fetch c.Grandchildren as gc
> left join fetch gc.GreatGrandchildren
> where e.Id in(:ids)
>
> where :ids is a list of 25 ids, so I can page through this.
> Unfortunately the user needs all this data because he will be making
> changes to it locally.
>
> I don't think Future[of T] applies here. I realize this turns into a
> Cartesian product but I am not sure what else to do here.

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