Update reference to customer model (#15275)
Updated reference to customer model in the Validation section to the following reference: [!code-cs[](index/3.0sample/RazorPagesContacts/Models/Customer.cs)]. Customer model in "Write a basic form" section and the "Validation" section will reference the same code.pull/15284/head
parent
82c4a61ed2
commit
892a0f0e47
|
@ -262,7 +262,7 @@ The <xref:System.ComponentModel.DataAnnotations> namespace provides a set of bui
|
|||
|
||||
Consider the `Customer` model:
|
||||
|
||||
[!code-cs[](index/sample/RazorPagesContacts/Data/Customer.cs)]
|
||||
[!code-cs[](index/3.0sample/RazorPagesContacts/Models/Customer.cs)]
|
||||
|
||||
Using the following *Create.cshtml* view file:
|
||||
|
||||
|
|
Loading…
Reference in New Issue