2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.ComponentModel.DataAnnotations;
8 using MonoTests.ModelProviders;
10 namespace MonoTests.Common
14 // DO NOT change the order of properties - tests depend on it
15 // DO NOT change the column types - tests depend on it
16 public int Column1 { get; set; }
17 public int PrimaryKeyColumn1 { get; set; }
18 public string PrimaryKeyColumn2 { get; set; }
19 public bool PrimaryKeyColumn3 { get; set; }
20 public string CustomPropertyColumn1 { get; set; }
23 public string CustomPropertyColumn2 { get; set; }
25 public int GeneratedColumn1 { get; set; }
28 public int GeneratedColumn2 { get; set; }
31 public int ReadOnlyColumn { get; private set; }
34 public int ReadWriteColumn { get; private set; }
36 [DisplayFormat (NullDisplayText="Text")]
37 public DateTime NullDisplayTextColumn { get; set; }
39 [Required (ErrorMessage = "Custom error message")]
40 public int ErrorMessageColumn1 { get; set; }
42 [Required (ErrorMessage = "s")]
43 public int ErrorMessageColumn2 { get; set; }
46 public int EmptyHintColumn { get; set; }
48 [DynamicDataSortable (true)]
49 public int SortableColumn1 { get; set; }
51 [UIHint ("MyCustomUIHintTemplate")]
52 public string CustomUIHintColumn { get; set; }
57 PrimaryKeyColumn1 = 456;
58 PrimaryKeyColumn2 = "primary key value";
59 PrimaryKeyColumn3 = true;