GetMultiB() and GetMultiB_()

Posts   
 
    
vanaeken
User
Posts: 6
Joined: 09-Dec-2004
# Posted on: 09-Dec-2004 11:28:55   

Assume that A has two different m:n relationships with B, one via X and one via Y.

LLBLGen generates the methods (for entity A) GetMultiB() and a GetMultiB_(). It is not clear which is which. Moreover the mapping can change from generation to generation.

Is there a way to generate something like GetMultiBViaX() and GetMultiBViaY()? Such a naming scheme would be a lot more useful.

Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 09-Dec-2004 11:54:30   

You can rename the fields mapped on these relations in the designer. (in the project explorer or in the entity editor). These names are then reflected in the methods you refer to simple_smile

Frans Bouma | Lead developer LLBLGen Pro
vanaeken
User
Posts: 6
Joined: 09-Dec-2004
# Posted on: 09-Dec-2004 14:08:36   

Is there really no way to generate them like this automatically? We now and then generate from scratch and it would be a hassle to rename these fields every time.

Otis wrote:

You can rename the fields mapped on these relations in the designer. (in the project explorer or in the entity editor). These names are then reflected in the methods you refer to simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 09-Dec-2004 14:27:42   

There will be more intelligent logic added soon, but for now this is the only option you'll have. Btw, refreshing the catalog doesn't update these names, the names you give them is preserved.

Also, often these duplicate names are a result of relations found which are not really needed. You can 'hide' these in the designer as well.

Frans Bouma | Lead developer LLBLGen Pro