Relation Naming Issue

Posts   
 
    
DaveR
User
Posts: 43
Joined: 15-Jun-2004
# Posted on: 10-Aug-2005 20:27:57   

When adding a new entity to a project, the field name for 1:n relations from other entities is not set properly.

I want 1:n relations to be named with a trailing "s", for example, Customer.Orders. The relation is named with the entity name only, i.e. Customer.Order, and needs to be manually renamed to add the "s".

On relations through intermediate entities, it works correctly, since in the project properties, I have FieldMappedOnManyToManyPattern set to {$IntermediateEntityName}{$EndEntityName}s. I have FieldMappedOnOneManyToOnePattern set to {$EndEntityName} which is what I want for m:1.

It seems that what I want is a "FieldMappedOnOneToManyPattern" option but it doesn't seem to exist.

I'm fairly certain this worked as expected in older versions of LLBLGen.

Apologies if I'm missing something obvious here...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 10-Aug-2005 21:08:35   

It was added after 1.0.2004.2 was initially released. Please upgrade to the latest designer, it's there simple_smile

Frans Bouma | Lead developer LLBLGen Pro
DaveR
User
Posts: 43
Joined: 15-Jun-2004
# Posted on: 11-Aug-2005 16:28:22   

Ah, of course I should have checked for upgrades first. I'm still on April 22. Thanks!