You can use the DisplayFormat
attribute on the property of your model class:
[DisplayFormat(ConvertEmptyStringToNull = false)]
You can use the DisplayFormat
attribute on the property of your model class:
[DisplayFormat(ConvertEmptyStringToNull = false)]