related Collections on a entity collection

Posts   
 
    
nefise
User
Posts: 22
Joined: 01-Dec-2006
# Posted on: 21-Feb-2007 09:01:50   

llblgen version 2.0 , Adapters, Oracle, .NET 2005

when i add an entityCollection to the project, the entityCollection is created with relational Collections, like viaCollection. And this increases the memory that the program uses. How can I avoid this?

Posts: 24
Joined: 01-Dec-2006
# Posted on: 21-Feb-2007 09:38:55   

Can you send the part of the code? I have the same problem.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 21-Feb-2007 10:01:09   

The viaCollections are the m:n relations. By default they're hidden, as configured by the preference "HideManyToManyRelationsOnCreation". This setting is true by default.

You can hide m:n relations in bulk with the plugin provided in the designer. Right click 'Entities' in project explorer and select the plugin from the 'run plugin' menu. There you can specify which entities to hide the m:n relations on.

There's an issue currently with the initial size of collections. The initial size is set to 32 references. This is small, though if you have a truckload of m:n relations in your entity, you'll get unnecessary memory consumption. This will be fixed in v2.1, a free upgrade for v2.0 users.

Frans Bouma | Lead developer LLBLGen Pro