Fix line highlights (#24662)

pull/24667/head
Kirk Larkin 2022-01-19 11:04:48 +00:00 committed by GitHub
parent 8b05fd8d62
commit 601db91752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: