51 references to DataType
System.ComponentModel.DataAnnotations (16)
DataAnnotations\CreditCardAttribute.cs (1)
11: base(DataType.CreditCard) {
DataAnnotations\DataTypeAttribute.cs (11)
8/// property (such as <see cref="System.ComponentModel.DataAnnotations.DataType.PhoneNumber"/> 9/// or <see cref="System.ComponentModel.DataAnnotations.DataType.Url"/>) 17public DataType DataType { get; private set; } 33if (DataType == DataType.Custom) { 52public DataTypeAttribute(DataType dataType) { 57case DataType.Date: 62case DataType.Time: 67case DataType.Currency: 82: this(DataType.Custom) { 109if (this.DataType == DataType.Custom && String.IsNullOrEmpty(this.CustomDataType)) { 114private static string[] _dataTypeStrings = Enum.GetNames(typeof(DataType));
DataAnnotations\EmailAddressAttribute.cs (1)
14: base(DataType.EmailAddress) {
DataAnnotations\FileExtensionsAttribute.cs (1)
17: base(DataType.Upload) {
DataAnnotations\PhoneAttribute.cs (1)
13: base(DataType.PhoneNumber) {
DataAnnotations\UrlAttribute.cs (1)
14: base(DataType.Url) {
System.Web (32)
ModelBinding\DataTypeUtil.cs (32)
6internal static readonly string CurrencyTypeName = DataType.Currency.ToString(); 7internal static readonly string DateTypeName = DataType.Date.ToString(); 8internal static readonly string DateTimeTypeName = DataType.DateTime.ToString(); 9internal static readonly string DurationTypeName = DataType.Duration.ToString(); 10internal static readonly string EmailAddressTypeName = DataType.EmailAddress.ToString(); 11internal static readonly string HtmlTypeName = DataType.Html.ToString(); 12internal static readonly string ImageUrlTypeName = DataType.ImageUrl.ToString(); 13internal static readonly string MultiLineTextTypeName = DataType.MultilineText.ToString(); 14internal static readonly string PasswordTypeName = DataType.Password.ToString(); 15internal static readonly string PhoneNumberTypeName = DataType.PhoneNumber.ToString(); 16internal static readonly string TextTypeName = DataType.Text.ToString(); 17internal static readonly string TimeTypeName = DataType.Time.ToString(); 18internal static readonly string UrlTypeName = DataType.Url.ToString(); 19internal static readonly string CreditCardTypeName = DataType.CreditCard.ToString(); 20internal static readonly string PostalCodeTypeName = DataType.PostalCode.ToString(); 21internal static readonly string UploadTypeName = DataType.Upload.ToString(); 35case DataType.Currency: 37case DataType.Date: 39case DataType.DateTime: 41case DataType.Duration: 43case DataType.EmailAddress: 45case DataType.Html: 47case DataType.ImageUrl: 49case DataType.MultilineText: 51case DataType.Password: 53case DataType.PhoneNumber: 55case DataType.Text: 57case DataType.Time: 59case DataType.Url: 61case DataType.CreditCard: 63case DataType.PostalCode: 65case DataType.Upload:
System.Web.DynamicData (3)
DynamicData\FieldTemplateFactory.cs (1)
70_typesToTemplateNames[typeof(string)] = DataType.Text.ToString();
DynamicData\MetaColumn.cs (2)
641return new DataTypeAttribute(DataType.MultilineText); 644return new DataTypeAttribute(DataType.Text);