6 types derived from DataTypeAttribute
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\CreditCardAttribute.cs (1)
7public sealed class CreditCardAttribute : DataTypeAttribute
System\ComponentModel\DataAnnotations\EmailAddressAttribute.cs (1)
8public sealed class EmailAddressAttribute : DataTypeAttribute
System\ComponentModel\DataAnnotations\EnumDataTypeAttribute.cs (1)
12public sealed class EnumDataTypeAttribute : DataTypeAttribute
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (1)
13public sealed class FileExtensionsAttribute : DataTypeAttribute
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (1)
8public sealed class PhoneAttribute : DataTypeAttribute
System\ComponentModel\DataAnnotations\UrlAttribute.cs (1)
8public sealed class UrlAttribute : DataTypeAttribute
6 instantiations of DataTypeAttribute
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)
59var dataTypeAttribute = attributes.OfType<DataTypeAttribute>().FirstOrDefault(); 220else 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 14internal sealed class DataTypeAttributeAdapter : AttributeAdapterBase<DataTypeAttribute> 16public DataTypeAttributeAdapter(DataTypeAttribute attribute, string ruleName, IStringLocalizer? stringLocalizer)
ValidationAttributeAdapterProvider.cs (4)
48return new DataTypeAttributeAdapter((DataTypeAttribute)attribute, "data-val-creditcard", stringLocalizer); 60return new DataTypeAttributeAdapter((DataTypeAttribute)attribute, "data-val-email", stringLocalizer); 64return new DataTypeAttributeAdapter((DataTypeAttribute)attribute, "data-val-phone", stringLocalizer); 68return new DataTypeAttributeAdapter((DataTypeAttribute)attribute, "data-val-url", stringLocalizer);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
655if (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))]