Employee.cs 626 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Drawing;
  5. using System.Linq;
  6. using System.Web;
  7. using System.Web.DynamicData;
  8. namespace MonoTests.DataObjects
  9. {
  10. public class Employee
  11. {
  12. public string FirstName { get; set; }
  13. [UIHint ("CustomFieldTemplate")]
  14. [DisplayFormat (ConvertEmptyStringToNull=true, NullDisplayText="No value for this column")]
  15. public string LastName { get; set; }
  16. [DisplayFormat (ApplyFormatInEditMode=true, DataFormatString="Boolean value: {0}")]
  17. public bool Active { get; set; }
  18. public Color FavoriteColor { get; set; }
  19. }
  20. }