I have a model class "Country" with property "CultureId" that is NOT marked as required. Another class "CountryViewModel" holds the same property "CultureId".
When rendering the "Create" view, I noticed that validation data attributes were added to the "CultureId" textbox, although there were no data annotations added.
I am using
@Html.HiddenFor(mode => mode.CultureId)
What might be the cause for such a behavior?
Thanks