The NativeInputFor extension method renders a property with an Html5 input adequate to its data-type. The specific Html5 input type chosen depends on the property data-type, and on the DataTypeAttribute that may decorate the property.
The min and max attributes are automatically inferred from RangeAttribute or DynamicRangeAttribute that may decorate the property.