Page 1 of 1

How to customize navigation property naming?

Posted: Wed 31 May 2017 14:43
by RobertK
Format: ("ReferenceClassName_PropertyName")

Example
Profile has 1.* Countries

Profile
-CountryId
-CitizenCountryId
-FirstName
-LastName

Navigation Properties
Profile => "Country_CountryId", "Country_CitizenCountryId"
Country => "Profiles_CountryId", "Profiles_CitizenCountryId"


This is more meaningful than having Country1, Country2, Profiles, Profiles2 etc..

Re: How to customize navigation property naming?

Posted: Tue 06 Jun 2017 09:30
by Shalex
Please open Model Settings > Synchronization > Model Naming and select "Add constraint details to navigation properties" to name navigation properties "ReferenceClassName_PropertyName".

Re: How to customize navigation property naming?

Posted: Thu 20 Sep 2018 02:20
by RobertK
If you manually renamed the navigation properties how do you reset all classes to use the standard naming rule?

Re: How to customize navigation property naming?

Posted: Thu 20 Sep 2018 13:45
by Shalex
Naming rules are applied only for the newly added entities. Please remove and readd your entities to the model.