I scaffolded a CRUD scenario for my model to start from. Now I need to add a radio button list field (which doesn't exist but the scenario for a dropdownlist is the same so think of that) for one field (an association to another type, think of a foreign key) to my "create"-view with database driven listitems. I found no other way to do this (without losing my strongly typed view) then to wrap my whole model in another one so I can add the list items.
That means I have to adapt almost every line in the view because they are no longer:
@Html.EditorFor(model => model.Name)
but now:
@Html.EditorFor(model => model.Model.Name)
Is there no way around this?