2 using System.Collections.Generic;
3 using System.ComponentModel.DataAnnotations;
5 namespace MonoTests.Common
7 // Parameters: display column, sort column, whether sort is descending
8 [DisplayColumn ("NoSuchColumn", "NoSuchColumn", false)]
9 class FooInvalidDisplayColumnAttribute
11 public string Column1 { get; set; }
12 public int Column2 { get; set; }
13 public string PrimaryKeyColumn1 { get; set; }
14 public int PrimaryKeyColumn2 { get; set; }
15 public bool PrimaryKeyColumn3 { get; set; }
17 public FooInvalidDisplayColumnAttribute ()
21 PrimaryKeyColumn1 = "primary key value";
22 PrimaryKeyColumn2 = 456;
23 PrimaryKeyColumn3 = true;