MVC @Html.TextBoxFor(model => model.SomeNotNullableType)
When using this helper, if I have a type that is not nullable in the database the view ends up with a default value in the text box. Specifically in my case, the field takes an integer, and it's putting a default value of 0 in the field.
I know I could remove the erroneous 0 with Javascript or setting the default value in html, but I was hoping there was a more 'correct' way of doing this. Can I specify in my model that I don't want a default view to be put into the text box (you cannot set it to null, as it is not nullable). Sticking with the true model approach I'd like to fix it in the model/controller, rather than in the view.