TrackAttribute.cs 635 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace XYY.Common.Standard
  3. {
  4. [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = true)]
  5. public class TrackAttribute : Attribute
  6. {
  7. public TrackAttribute(string description)
  8. {
  9. Description = description;
  10. }
  11. public string Description { get; set; }
  12. }
  13. [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
  14. public class TrackTableAttribute : Attribute
  15. {
  16. public TrackTableAttribute(Type table)
  17. {
  18. Table = table;
  19. }
  20. public Type Table { get; set; }
  21. }
  22. }