I’ve created a Dynamic Data project with an Entity Framework model. It works nicely. But, right now it shows all my database tables with the db column names – which aren’t always the most friendly (e.g. address_line_1). How can I got about giving these more friendly column titles that will display to the end user?
I’ve created a Dynamic Data project with an Entity Framework model. It works nicely.
Share
You should use Metadata classes to add additional annotations:
http://www.asp.net/mvc/tutorials/validation-with-the-data-annotation-validators-cs – find Using Data Annotation Validators with the Entity Framework
Attributes are used not only for setting display name, but also for validation, turning visibility, order or how data should be presented. You should look into it if you want to use Dynamic Data Entities project.