How to customize navigation property naming?
Posted: Wed 31 May 2017 14:43
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..
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..