Page 1 of 1

NavigationProperty naming when one relation and when many relations

Posted: Thu 25 Aug 2016 17:02
by smokeing
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).

Re: NavigationProperty naming when one relation and when many relations

Posted: Mon 29 Aug 2016 16:25
by Shalex
smokeing wrote:Is there any option to always include keyname in navigation property name?
We will notify you when the corresponding option is implemented.

Re: NavigationProperty naming when one relation and when many relations

Posted: Wed 31 Aug 2016 10:57
by Shalex
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.

Re: NavigationProperty naming when one relation and when many relations

Posted: Fri 02 Sep 2016 15:48
by Shalex
New build of dotConnect for Oracle 9.1.97 is available for download now!

Re: NavigationProperty naming when one relation and when many relations

Posted: Mon 12 Sep 2016 10:49
by smokeing
Thank you very much!