Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / class / System.Web.DynamicData / Test / Common / BazColumnAttributes.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.ComponentModel.DataAnnotations;
5 using System.Linq;
6 using System.Text;
7
8 namespace MonoTests.Common
9 {
10         class BazColumnAttributes
11         {
12                 public string ColumnNoAttributes { get; set; }
13
14                 [DisplayFormat (
15                         ApplyFormatInEditMode=true, 
16                         ConvertEmptyStringToNull=true, 
17                         DataFormatString="Item: {0}"
18                 )]
19                 public string ColumnFormatInEditMode { get; set; }
20
21                 [DataType (DataType.EmailAddress)]
22                 public string ColumnWithDataType { get; set; }
23
24                 [DefaultValue (12345L)]
25                 public long ColumnWithDefaultLongValue { get; set; }
26
27                 [DefaultValue ("Value")]
28                 public string ColumnWithDefaultStringValue { get; set; }
29
30                 [Description ("Description")]
31                 public string ColumnWithDescription { get; set; }
32
33                 [DisplayName ("Display Name")]
34                 public string ColumnWithDisplayName { get; set; }
35
36                 [ScaffoldColumn (false)]
37                 public string NoScaffoldColumn { get; set; }
38
39                 [ScaffoldColumn (true)]
40                 public string ScaffoldAttributeColumn { get; set; }
41
42                 [UIHint ("UI Hint")]
43                 public string UIHintColumn { get; set; }
44         }
45 }