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