I'm using Dynamic Data .NET 4 with scaffolding to edit data in my database. I'm using LINQ to SQL, and I have a table that contains 3 fields that all reference the same table with their foreign keys:
Matches
- TeamAId - Foreign key references a team in the Teams table
- TeamBId - Foreign key references a team in the Teams table
- WinnerId - Foreign key references a team in the Teams table
By default, Dynamic Data creates "Team", "Team1", "Team2" labels for these fields since it's trying to be smart about the foreign keys, but this isn't particularly helpful in differentiating among them. Is there an easy way to force the use of the original column names? Or must I create custom EntityTemplates to change these labels?