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 using MonoTests.ModelProviders;
9 
10 namespace MonoTests.Common
11 {
12 	class Baz
13 	{
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; }
21 
22 		[UIHint ("UI Hint")]
23 		public string CustomPropertyColumn2 { get; set; }
24 
25 		public int GeneratedColumn1 { get; set; }
26 
27 		[UIHint ("UI Hint")]
28 		public int GeneratedColumn2 { get; set; }
29 
30 		[ReadOnly (true)]
31 		public int ReadOnlyColumn { get; private set;  }
32 
33 		[ReadOnly (false)]
34 		public int ReadWriteColumn { get; private set; }
35 
36 		[DisplayFormat (NullDisplayText="Text")]
37 		public DateTime NullDisplayTextColumn { get; set; }
38 
39 		[Required (ErrorMessage = "Custom error message")]
40 		public int ErrorMessageColumn1 { get; set; }
41 
42 		[Required (ErrorMessage = "s")]
43 		public int ErrorMessageColumn2 { get; set; }
44 
45 		[UIHint ("")]
46 		public int EmptyHintColumn { get; set; }
47 
48 		[DynamicDataSortable (true)]
49 		public int SortableColumn1 { get; set; }
50 
51 		[UIHint ("MyCustomUIHintTemplate")]
52 		public string CustomUIHintColumn { get; set; }
53 
Baz()54 		public Baz ()
55 		{
56 			Column1 = 123;
57 			PrimaryKeyColumn1 = 456;
58 			PrimaryKeyColumn2 = "primary key value";
59 			PrimaryKeyColumn3 = true;
60 		}
61 	}
62 }
63