Create entity instance with prefetch

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 15-Apr-2005 17:29:13   

Hi,

When you call 'FetchEntity', you can supply a prefetch so that related entities get created and populated too.

Is it possible to supply an entity instance and a prefetch to LLBL Gen and have it return the instance with its related entites ( as specified in the pre-fetch) created but not to have actually gone to the database and populated the data?

So I want the object instances but not the data.

Cheers,

Ian.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 15-Apr-2005 17:42:08   

No that's not possible. The reason for that is that the code merges child with parent, but if there's no data, there's nothing to merge.

Frans Bouma | Lead developer LLBLGen Pro