I am currently generating some code from an edmx file with a t4 template by going through all of the properties. By default the edmx file has navigation properties that are named after the object type essentially but I would like to change it to work off of the foreign key id column instead.
For example there is a Region table which is referred to by a single table twice - it has both a Supervisory Region and a Geographic Region. The default edmx navigation property name is Region and Region1 which isn't very descriptive. I would like the regions to be called SupervisoryRegion and GeographicRegion instead.
I would normally go into the edmx and rename these navigation properties but little things in the database change all the time and the edmx file doesn't "update" very gracefully without pulling in the database again which clears my renames.
Any help would be greatly appreciated...