Why does EditorFor renders different classes and input types for byte and short, as shown here:
<div class="form-group">
<input class="text-box single-line" data-val="true"
data-val-number="The field Num Year / Period must be a number."
id="NumYear_Period" name="NumYear_Period" type="number" value="" />
</div>
<div class="form-group">
<input class="form-control" data-val="true"
data-val-number="The field Start Year must be a number."
id="Start_Year_Period" name="Start_Year_Period" type="text" value="" />
</div>
Where "NumYear_Period" is a Nullable Byte and "Start_Year_Period" is a Nullable Short as:
[Display(Name = "Num Year / Period")]
public Nullable<byte> NumYear_Period { get; set; }
[Display(Name = "Start Year")]
public Nullable<short> Start_Year_Period { get; set; }
The Create.cshtml view contains:
<div class="form-group">
@Html.EditorFor(model => model.NumYear_Period)
</div>
<div class="form-group">
@Html.EditorFor(model => model.Start_Year_Period)
</div>
I have no EditorTemplates present, so why!!
Using Bootstrap, Visual Studio 2013 Update 1, MVC 5.1.1, .Net 4.5, Razor 3.1.1