When I do Html.EditorFor(c => Model) which walks through all properties and creates input elements in form.
But I need something like Bind(Include="Name") with which I like to learn which elements EditorFor will actually create for me as I don’t need ID and ModifiedSince kind of properties to be filled out by users.
I know probably I will need to use System.ComponentModel.DataAnnotations maybe but it seems MVC community is lacking documentation compared to Web Forms.
Long story short, how can I achieve that?
1 Answer