From ad3088f6eede096a37fd5c198a133cea71b6fa50 Mon Sep 17 00:00:00 2001 From: Nikolai Vavilov Date: Sat, 1 Sep 2018 16:34:01 +0300 Subject: [PATCH] Update validation.md (#8380) --- aspnetcore/includes/mvc-intro/validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/includes/mvc-intro/validation.md b/aspnetcore/includes/mvc-intro/validation.md index c31e55b54e..9fab553c28 100644 --- a/aspnetcore/includes/mvc-intro/validation.md +++ b/aspnetcore/includes/mvc-intro/validation.md @@ -82,7 +82,7 @@ Open the *Movie.cs* file and examine the `Movie` class. The `System.ComponentMod [!code-csharp[](~/tutorials/first-mvc-app/start-mvc//sample/MvcMovie/Models/MovieDateRatingDA.cs?highlight=2,6&name=snippet2)] -The `DataType` attributes only provide hints for the view engine to format the data (and supplies elements/attributes such as `` for URL's and `` for email. You can use the `RegularExpression` attribute to validate the format of the data. The `DataType` attribute is used to specify a data type that's more specific than the database intrinsic type, they're not validation attributes. In this case we only want to keep track of the date, not the time. The `DataType` Enumeration provides for many data types, such as Date, Time, PhoneNumber, Currency, EmailAddress and more. The `DataType` attribute can also enable the application to automatically provide type-specific features. For example, a `mailto:` link can be created for `DataType.EmailAddress`, and a date selector can be provided for `DataType.Date` in browsers that support HTML5. The `DataType` attributes emits HTML 5 `data-` (pronounced data dash) attributes that HTML 5 browsers can understand. The +The `DataType` attributes only provide hints for the view engine to format the data (and supplies elements/attributes such as `` for URL's and `` for email. You can use the `RegularExpression` attribute to validate the format of the data. The `DataType` attribute is used to specify a data type that's more specific than the database intrinsic type, they're not validation attributes. In this case we only want to keep track of the date, not the time. The `DataType` Enumeration provides for many data types, such as Date, Time, PhoneNumber, Currency, EmailAddress and more. The `DataType` attribute can also enable the application to automatically provide type-specific features. For example, a `mailto:` link can be created for `DataType.EmailAddress`, and a date selector can be provided for `DataType.Date` in browsers that support HTML5. The `DataType` attributes emit HTML 5 `data-` (pronounced data dash) attributes that HTML 5 browsers can understand. The `DataType` attributes do **not** provide any validation. `DataType.Date` doesn't specify the format of the date that's displayed. By default, the data field is displayed according to the default formats based on the server's `CultureInfo`.