SCCSysAttribute.cs 784 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SCC.Models
  6. {
  7. /// <summary>
  8. /// 网络爬虫工具特性类
  9. /// </summary>
  10. class SCCSysAttribute
  11. {
  12. }
  13. /// <summary>
  14. /// 彩种表名称特性
  15. /// </summary>
  16. [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
  17. public sealed class TableNameAttribute : Attribute
  18. {
  19. private string _tablename;
  20. public string TableName { get { return _tablename; } }
  21. /// <summary>
  22. /// 构造函数
  23. /// </summary>
  24. /// <param name="TableName">表名称</param>
  25. public TableNameAttribute(string TableName)
  26. {
  27. this._tablename = TableName;
  28. }
  29. }
  30. }