FooEmptyDisplayColumnAttribute.cs 682 B

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