I would like to know what rules Entity Framework follows in regards to the naming/generation of navigation properties. I have observed several scenarios which don\'t seem to
That is expected behavior and it is based on two different conventions based by EF
NameOfNavigationProperty_NameOfRelatedPK
This convention follows traditional database naming.NameOfNavigationPropertyNameOfRelatedPK
provided by NavigationPropertyNameForeignKeyDiscoveryConvention
NameOfRelatedTypeNameOfItsPK
provided by TypeNameForeignKeyDiscoveryConvention
NameOfRelatedPK
provided by PrimaryKeyNameForeignKeyDiscoveryConvention
In addition to @Ladislav Mrnka's answer above, you can find a detailed reference of the entity framework default conventions here: http://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions(v=vs.103).aspx