NavigationProperty naming when one relation and when many relations

NavigationProperty naming when one relation and when many relations

Postby smokeing » Thu 25 Aug 2016 17:02

Hi,

when there is only one relation, navigation property is named like related entity.
When there are two or more relations, the name is: "entity_keyname".

Is there any option to always include keyname in navigation property name?
It's sometimes confusing when someone adds relation, and existing navigation property changes its name.

I can't manually change it, because in our database there are hundreds of relations, and model is sometimes regenerated twice a day (because of database-first approach).
smokeing
 
Posts: 23
Joined: Fri 09 Oct 2015 00:51

Re: NavigationProperty naming when one relation and when many relations

Postby Shalex » Mon 29 Aug 2016 16:25

smokeing wrote:Is there any option to always include keyname in navigation property name?
We will notify you when the corresponding option is implemented.
Shalex
Devart Team
 
Posts: 7536
Joined: Thu 14 Aug 2008 12:44

Re: NavigationProperty naming when one relation and when many relations

Postby Shalex » Wed 31 Aug 2016 10:57

The new "Add constraint details to navigation properties" option is added to Model Settings > Synchronization > Model Naming to always include keyname in navigation property name. We will notify you when the corresponding build of dotConnect for Oracle is available for download.
Shalex
Devart Team
 
Posts: 7536
Joined: Thu 14 Aug 2008 12:44

Re: NavigationProperty naming when one relation and when many relations

Postby Shalex » Fri 02 Sep 2016 15:48

New build of dotConnect for Oracle 9.1.97 is available for download now!
Shalex
Devart Team
 
Posts: 7536
Joined: Thu 14 Aug 2008 12:44

Re: NavigationProperty naming when one relation and when many relations

Postby smokeing » Mon 12 Sep 2016 10:49

Thank you very much!
smokeing
 
Posts: 23
Joined: Fri 09 Oct 2015 00:51


Return to dotConnect for Oracle