How to prevent to load the relationalobjects into win datagrid

Posts   
 
    
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 04-Feb-2005 01:33:39   

From the documentation:

When an entity has 1:m or m:n relations with other entities, it will expose properties which in turn will return an EntityCollection."

How can i prevent the entity collection to be filled with the related entitites?

I don't want the bound datagrid to shows all my database smile on user's request.

Thanks

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 04-Feb-2005 09:50:08   

In adapter you have to fill them, otherwise they're empty. In selfservicing they're loaded on the fly, which is called lazy loading.

Frans Bouma | Lead developer LLBLGen Pro