ExtendPropertyAttribute.cs 683 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Ant.ORM
  5. {
  6. /// <summary>
  7. /// 扩展属性定义类
  8. /// </summary>
  9. [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
  10. public class ExtendPropertyAttribute : Attribute
  11. {
  12. private bool _IsExtendProperty = false;
  13. /// <summary>
  14. /// 是否是扩展属性
  15. /// </summary>
  16. public bool IsExtendProperty
  17. {
  18. get
  19. {
  20. return this._IsExtendProperty;
  21. }
  22. set
  23. {
  24. this._IsExtendProperty = value;
  25. }
  26. }
  27. }
  28. }