2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.ComponentModel.DataAnnotations;
8 namespace MonoTests.Common
10 class BazColumnAttributes
12 public string ColumnNoAttributes { get; set; }
15 ApplyFormatInEditMode=true,
16 ConvertEmptyStringToNull=true,
17 DataFormatString="Item: {0}"
19 public string ColumnFormatInEditMode { get; set; }
21 [DataType (DataType.EmailAddress)]
22 public string ColumnWithDataType { get; set; }
24 [DefaultValue (12345L)]
25 public long ColumnWithDefaultLongValue { get; set; }
27 [DefaultValue ("Value")]
28 public string ColumnWithDefaultStringValue { get; set; }
30 [Description ("Description")]
31 public string ColumnWithDescription { get; set; }
33 [DisplayName ("Display Name")]
34 public string ColumnWithDisplayName { get; set; }
36 [ScaffoldColumn (false)]
37 public string NoScaffoldColumn { get; set; }
39 [ScaffoldColumn (true)]
40 public string ScaffoldAttributeColumn { get; set; }
43 public string UIHintColumn { get; set; }