93 references to DataType
BasicWebSite (1)
Models\LoginViewModel.cs (1)
15
[DataType(
DataType
.Password)]
HtmlGenerationWebSite (2)
Models\CustomerRecord.cs (1)
23
[DataType(
DataType
.EmailAddress)]
Models\Person.cs (1)
46
[DataType(
DataType
.EmailAddress)]
Identity.ExternalClaims (13)
Pages\Account\Login.cshtml.cs (1)
46
[DataType(
DataType
.Password)]
Pages\Account\LoginWith2fa.cshtml.cs (1)
39
[DataType(
DataType
.Text)]
Pages\Account\LoginWithRecoveryCode.cshtml.cs (1)
37
[DataType(
DataType
.Text)]
Pages\Account\Manage\ChangePassword.cshtml.cs (3)
42
[DataType(
DataType
.Password)]
48
[DataType(
DataType
.Password)]
52
[DataType(
DataType
.Password)]
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (1)
50
[DataType(
DataType
.Text)]
Pages\Account\Manage\SetPassword.cshtml.cs (2)
39
[DataType(
DataType
.Password)]
43
[DataType(
DataType
.Password)]
Pages\Account\Register.cshtml.cs (2)
51
[DataType(
DataType
.Password)]
55
[DataType(
DataType
.Password)]
Pages\Account\ResetPassword.cshtml.cs (2)
36
[DataType(
DataType
.Password)]
39
[DataType(
DataType
.Password)]
IdentitySample.DefaultUI (4)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (1)
40
[DataType(
DataType
.Text)]
Areas\Identity\Pages\Account\Register.cshtml.cs (3)
50
[DataType(
DataType
.Password)]
54
[DataType(
DataType
.Password)]
60
[DataType(
DataType
.Text)]
IdentitySample.Mvc (10)
Models\AccountViewModels\LoginViewModel.cs (1)
15
[DataType(
DataType
.Password)]
Models\AccountViewModels\RegisterViewModel.cs (2)
17
[DataType(
DataType
.Password)]
21
[DataType(
DataType
.Password)]
Models\AccountViewModels\ResetPasswordViewModel.cs (2)
16
[DataType(
DataType
.Password)]
19
[DataType(
DataType
.Password)]
Models\ManageViewModels\ChangePasswordViewModel.cs (3)
11
[DataType(
DataType
.Password)]
17
[DataType(
DataType
.Password)]
21
[DataType(
DataType
.Password)]
Models\ManageViewModels\SetPasswordViewModel.cs (2)
12
[DataType(
DataType
.Password)]
16
[DataType(
DataType
.Password)]
Microsoft.AspNetCore.Identity.UI (28)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
68
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (1)
52
[DataType(
DataType
.Text)]
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (1)
46
[DataType(
DataType
.Text)]
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (3)
43
[DataType(
DataType
.Password)]
53
[DataType(
DataType
.Password)]
61
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (1)
36
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
67
[DataType(
DataType
.Text)]
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (2)
43
[DataType(
DataType
.Password)]
51
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
66
[DataType(
DataType
.Password)]
74
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (2)
48
[DataType(
DataType
.Password)]
55
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
68
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (1)
52
[DataType(
DataType
.Text)]
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (1)
46
[DataType(
DataType
.Text)]
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (3)
43
[DataType(
DataType
.Password)]
53
[DataType(
DataType
.Password)]
61
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (1)
36
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
67
[DataType(
DataType
.Text)]
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (2)
43
[DataType(
DataType
.Password)]
51
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
66
[DataType(
DataType
.Password)]
74
[DataType(
DataType
.Password)]
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (2)
48
[DataType(
DataType
.Password)]
55
[DataType(
DataType
.Password)]
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
93
displayMetadata.DataTypeName = nameof(
DataType
.Html);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
DataAnnotationsMetadataProviderTest.cs (4)
33
{ new DataTypeAttribute(
DataType
.Duration), d => d.DataTypeName,
DataType
.Duration.ToString() },
110
var dataType = new DataTypeAttribute(
DataType
.Currency);
130
var dataType = new DataTypeAttribute(
DataType
.Time); // Has a non-null DisplayFormat.
ModelMetadataProviderTest.cs (4)
269
new DataTypeAttribute(
DataType
.Date),
530
var dataType = new DataTypeAttribute(
DataType
.MultilineText);
548
var dataType = new DataTypeAttribute(
DataType
.Currency);
566
var dataType = new DataTypeAttribute(
DataType
.Currency);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
InputTagHelperTest.cs (5)
2438
[DataType(
DataType
.Date)]
2443
[DataType(
DataType
.Date)]
2450
[DataType(
DataType
.Date)]
2455
[DataType(
DataType
.Date)]
2465
[DataType(
DataType
.Time)]
RazorPagesWebSite (2)
Pages\CustomModelTypeModel.cshtml.cs (2)
31
[DataType(
DataType
.Password)]
35
[DataType(
DataType
.Password)]
System.ComponentModel.Annotations (16)
System\ComponentModel\DataAnnotations\CreditCardAttribute.cs (1)
10
: base(
DataType
.CreditCard)
System\ComponentModel\DataAnnotations\DataTypeAttribute.cs (11)
10
/// property (such as <see cref="System.ComponentModel.DataAnnotations.
DataType
.PhoneNumber" />
11
/// or <see cref="System.ComponentModel.DataAnnotations.
DataType
.Url" />)
18
private static readonly string[] _dataTypeStrings = Enum.GetNames<
DataType
>();
24
public DataTypeAttribute(
DataType
dataType)
31
case
DataType
.Date:
36
case
DataType
.Time:
41
case
DataType
.Currency:
56
: this(
DataType
.Custom)
64
public
DataType
DataType { get; }
87
if (DataType ==
DataType
.Custom)
117
if (DataType ==
DataType
.Custom && string.IsNullOrWhiteSpace(CustomDataType))
System\ComponentModel\DataAnnotations\EmailAddressAttribute.cs (1)
11
: base(
DataType
.EmailAddress)
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (1)
18
: base(
DataType
.Upload)
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (1)
16
: base(
DataType
.PhoneNumber)
System\ComponentModel\DataAnnotations\UrlAttribute.cs (1)
11
: base(
DataType
.Url)
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.
DataType
))]
TagHelpersWebSite (2)
Models\Employee.cs (2)
22
[DataType(
DataType
.Date)]
25
[DataType(
DataType
.EmailAddress)]