Data Annotation Validator attributes include?
-
Required
-
Range
-
StringLength
-
All of the above
D
Correct answer
Explanation
Data Annotations provide a declarative way to validate model properties. Required ensures a field isn't empty, Range validates numeric ranges, and StringLength enforces character limits. These are commonly used in MVC models for automatic server and client-side validation.