NavigationProperty naming when one relation and when many relations

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
smokeing
Posts: 23
Joined: Fri 09 Oct 2015 00:51

NavigationProperty naming when one relation and when many relations

Post by 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).

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: NavigationProperty naming when one relation and when many relations

Post by 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
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: NavigationProperty naming when one relation and when many relations

Post by 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
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: NavigationProperty naming when one relation and when many relations

Post by Shalex » Fri 02 Sep 2016 15:48

New build of dotConnect for Oracle 9.1.97 is available for download now!

smokeing
Posts: 23
Joined: Fri 09 Oct 2015 00:51

Re: NavigationProperty naming when one relation and when many relations

Post by smokeing » Mon 12 Sep 2016 10:49

Thank you very much!

Post Reply