How To Manually Set Related Collection ?

Posts   
 
    
Marcus avatar
Marcus
User
Posts: 747
Joined: 23-Apr-2004
# Posted on: 30-Nov-2005 17:17:32   

Frans,

I have a need to manually set a related collection. Is there a SetRelatedEntity equivalent for Collections?

i.e. something equvalent to:

Folder.ItemCollection = itemCollection

Marcus

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 01-Dec-2005 12:25:45   

No that's not available. You can generate it in, by using an include template and generate Set... methods into the class. Please check the get property template code what you've to do, as you've to set the containingentityinfo on the collection.

Frans Bouma | Lead developer LLBLGen Pro
Marcus avatar
Marcus
User
Posts: 747
Joined: 23-Apr-2004
# Posted on: 01-Dec-2005 13:58:12   

Otis wrote:

No that's not available. You can generate it in, by using an include template and generate Set... methods into the class. Please check the get property template code what you've to do, as you've to set the containingentityinfo on the collection.

Ok Thanks.