0

Possible Duplicate:
Entity Framework 4.1 dynamically retrieve summary for scalar properties from database table column description

Is it possible to map the Column Description (the extended property MS_Description in the database ) to the DisplayNameAttribute (the name used by @Html.DisplayNameFor) ?

I don't want to use Data Annotations, as I would like the DBA to set the proper column descriptions in the database.

Community
  • 1
  • 1
cab0
  • 464
  • 1
  • 5
  • 11

1 Answers1

0
MvcApplication10.Models.Acesso_Usuario


   <div class="editor-label">
        @Html.LabelFor(model => model.Senha)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Senha)
        @Html.ValidationMessageFor(model => model.Senha)
    </div>

If you are using CSHTML He wil set name automatic from DBA, whitout data annotations.