mvc 3 Html.EditorFor добавить атрибут html не работает

Я пытаюсь добавить атрибут html для EditorFor

 @Html.EditorFor(model => model.UserName, new { style = "width: 100px" })

Но в любом случае я получаю

<input id="UserName" class="text-box single-line" type="text" value="" name="UserName">
19
задан user2771704 7 October 2015 в 10:15
поделиться