Add Link to DataAnnotations Reference Where It's Mentioned (#24762)
Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>pull/24738/head
parent
b91ea9bd2f
commit
9cefbab992
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue