6 types derived from DataTypeAttribute
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\CreditCardAttribute.cs (1)
7
public sealed class CreditCardAttribute :
DataTypeAttribute
System\ComponentModel\DataAnnotations\EmailAddressAttribute.cs (1)
8
public sealed class EmailAddressAttribute :
DataTypeAttribute
System\ComponentModel\DataAnnotations\EnumDataTypeAttribute.cs (1)
12
public sealed class EnumDataTypeAttribute :
DataTypeAttribute
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (1)
13
public sealed class FileExtensionsAttribute :
DataTypeAttribute
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (1)
8
public sealed class PhoneAttribute :
DataTypeAttribute
System\ComponentModel\DataAnnotations\UrlAttribute.cs (1)
8
public sealed class UrlAttribute :
DataTypeAttribute
34 instantiations of DataTypeAttribute
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.Extensions.AI.Abstractions.Tests (6)
Utilities\AIJsonUtilitiesTests.cs (6)
1071
[
DataType
(DataType.DateTime)]
1074
[
DataType
(DataType.Date)]
1077
[
DataType
(DataType.Time)]
1080
[
DataType
(DataType.EmailAddress)]
1083
[
DataType
(DataType.Url)]
1086
[
DataType
(DataType.ImageUrl)]
13 references to DataTypeAttribute
Microsoft.AspNetCore.Mvc.DataAnnotations (10)
DataAnnotationsMetadataProvider.cs (3)
59
var
dataTypeAttribute = attributes.OfType<
DataTypeAttribute
>().FirstOrDefault();
220
else if (dataTypeAttribute.GetType() != typeof(
DataTypeAttribute
))
DataTypeAttributeAdapter.cs (3)
11
/// A validation adapter that is used to map <see cref="
DataTypeAttribute
"/>'s to a single client side validation
14
internal sealed class DataTypeAttributeAdapter : AttributeAdapterBase<
DataTypeAttribute
>
16
public DataTypeAttributeAdapter(
DataTypeAttribute
attribute, string ruleName, IStringLocalizer? stringLocalizer)
ValidationAttributeAdapterProvider.cs (4)
48
return new DataTypeAttributeAdapter((
DataTypeAttribute
)attribute, "data-val-creditcard", stringLocalizer);
60
return new DataTypeAttributeAdapter((
DataTypeAttribute
)attribute, "data-val-email", stringLocalizer);
64
return new DataTypeAttributeAdapter((
DataTypeAttribute
)attribute, "data-val-phone", stringLocalizer);
68
return new DataTypeAttributeAdapter((
DataTypeAttribute
)attribute, "data-val-url", stringLocalizer);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
655
if (ResolveAttribute<
DataTypeAttribute
>() is { } dataTypeAttribute)
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\DataType.cs (1)
7
/// Enumeration of logical data types that may appear in <see cref="
DataTypeAttribute
" />
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
11
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.
DataTypeAttribute
))]