NavigationProperty naming when one relation and when many relations
Posted: 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).
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).