BazColumnAttributes.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. namespace MonoTests.Common
  8. {
  9. class BazColumnAttributes
  10. {
  11. public string ColumnNoAttributes { get; set; }
  12. [DisplayFormat (
  13. ApplyFormatInEditMode=true,
  14. ConvertEmptyStringToNull=true,
  15. DataFormatString="Item: {0}"
  16. )]
  17. public string ColumnFormatInEditMode { get; set; }
  18. [DataType (DataType.EmailAddress)]
  19. public string ColumnWithDataType { get; set; }
  20. [DefaultValue (12345L)]
  21. public long ColumnWithDefaultLongValue { get; set; }
  22. [DefaultValue ("Value")]
  23. public string ColumnWithDefaultStringValue { get; set; }
  24. [Description ("Description")]
  25. public string ColumnWithDescription { get; set; }
  26. [DisplayName ("Display Name")]
  27. public string ColumnWithDisplayName { get; set; }
  28. [ScaffoldColumn (false)]
  29. public string NoScaffoldColumn { get; set; }
  30. [ScaffoldColumn (true)]
  31. public string ScaffoldAttributeColumn { get; set; }
  32. [UIHint ("UI Hint")]
  33. public string UIHintColumn { get; set; }
  34. }
  35. }