SCCSysAttribute.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /// <summary>
  31. /// 彩种编码特性
  32. /// </summary>
  33. [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
  34. public sealed class LotteryCodeAttribute : Attribute
  35. {
  36. private string _code;
  37. public string Code { get { return _code; } }
  38. /// <summary>
  39. /// 构造函数
  40. /// </summary>
  41. /// <param name="TableName">表名称</param>
  42. public LotteryCodeAttribute(string Code)
  43. {
  44. this._code = Code;
  45. }
  46. }
  47. }