navigators and foreign key naming

Posts   
 
    
morten71
User
Posts: 80
Joined: 13-Jan-2009
# Posted on: 27-May-2014 10:39:07   

I have a table A with two foreign keys referring to the same table A. FK key 1 is named: FK_OriginalId FK key 2 is named: FK_RefId

When the code is generated the entity navigators are named TableA and TableA1.

Is there a way to have the FK naming done in the database reflected in the code layer? If yes, what trouble should I be aware of?

/Morten

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 28-May-2014 01:08:23   

You can change the navigator names manually in the designer. Is this what you are asking for?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 28-May-2014 15:13:36   

Also look at the navigator naming patterns in the project settings: you can't refer to the FK constraint but you can refer to fk field names, which offers you similar power.

Frans Bouma | Lead developer LLBLGen Pro