DataSource and Prefetching

Posts   
 
    
rdotson
User
Posts: 1
Joined: 23-May-2007
# Posted on: 23-May-2007 07:20:43   

Hey guys,

Great product! I've been using it for about a year and love it.

A databinding question for Adapter v2.0 in ASP.Net:

Is it possible to specify prefetch paths declaratively for LLBLGenDataSource2?

I'm using Fields mapped on related fields (for lookup purposes), so by default I don't get the related entity fields on the entities loaded by the datasource...

Assuming it's not possible, do you have a decent workaround for this kind of thing (short of doing the databinding in code, where I can of course force the prefetch)? -- I seem to be needing it a lot to just display gridviews with lookup fields.

I don't want to use a typed list because I'd still like to use the "edit-in-place" feature of the grid for entity fields that are not lookups (read only).

-Ryan

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 23-May-2007 08:58:58   

Set the LLBLGenProDataSource's PrefetchPath property in the PageLoad event. It can't be set declaratively.