2009-09-10 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web.DynamicData / Test / Common / FooInvalidDisplayColumnAttribute.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel.DataAnnotations;
4
5 namespace MonoTests.Common
6 {
7         // Parameters: display column, sort column, whether sort is descending
8         [DisplayColumn ("NoSuchColumn", "NoSuchColumn", false)]
9         class FooInvalidDisplayColumnAttribute
10         {
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; }
16
17                 public FooInvalidDisplayColumnAttribute ()
18                 {
19                         Column1 = "hello";
20                         Column2 = 123;
21                         PrimaryKeyColumn1 = "primary key value";
22                         PrimaryKeyColumn2 = 456;
23                         PrimaryKeyColumn3 = true;
24                 }
25         }
26 }