Add Link to DataAnnotations Reference Where It's Mentioned (#24762)

Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>
pull/24738/head
Erhan Alankuş 2022-01-27 12:54:22 +03:00 committed by GitHub
parent b91ea9bd2f
commit 9cefbab992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ The validation support provided by Razor Pages and Entity Framework is a good ex
## Add validation rules to the movie model
The `DataAnnotations` namespace provides:
The <xref:System.ComponentModel.DataAnnotations> namespace provides:
* A set of built-in validation attributes that are applied declaratively to a class or property.
* Formatting attributes like `[DataType]` that help with formatting and don't provide any validation.
@ -481,4 +481,4 @@ Thanks for completing this introduction to Razor Pages. [Get started with Razor
> [!div class="step-by-step"]
> [Previous: Add a new field](xref:tutorials/razor-pages/new-field)
::: moniker-end
::: moniker-end