Fix line highlights (#24662)
parent
8b05fd8d62
commit
601db91752
|
@ -9,7 +9,7 @@ The DataAnnotations namespace provides a set of built-in validation attributes t
|
|||
|
||||
Update the `Movie` class to take advantage of the built-in `Required`, `StringLength`, `RegularExpression`, and `Range` validation attributes.
|
||||
|
||||
[!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie60/Models/Movie.cs?name=FinalSnippet&highlight=11-12,18-20,24-26,29-31)]
|
||||
[!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie60/Models/Movie.cs?name=FinalSnippet&highlight=11-12,19,24-26,29-31)]
|
||||
|
||||
The validation attributes specify behavior that you want to enforce on the model properties they're applied to:
|
||||
|
||||
|
|
Loading…
Reference in New Issue