using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Models { /// <summary> /// 网络爬虫工具特性类 /// </summary> class SCCSysAttribute { } /// <summary> /// TDK对应标签 /// </summary> [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public sealed class TDKTypeAttribute : Attribute { private string _tdktype; public string TDKType { get { return _tdktype; } } /// <summary> /// 构造函数 /// </summary> /// <param name="TableName">表名称</param> public TDKTypeAttribute(string TDKType) { this._tdktype = TDKType; } } /// <summary> /// 彩种表名称特性 /// </summary> [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public sealed class TableNameAttribute : Attribute { private string _tablename; public string TableName { get { return _tablename; } } /// <summary> /// 构造函数 /// </summary> /// <param name="TableName">表名称</param> public TableNameAttribute(string TableName) { this._tablename = TableName; } } public sealed class TextAttribute : Attribute { private string _text; public string Text { get { return _text; } } /// <summary> /// 构造函数 /// </summary> /// <param name="TableName">表名称</param> public TextAttribute(string Text) { this._text = Text; } } [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] public sealed class ZXTableNameAttribute : Attribute { private string _tablename; public string TableName { get { return _tablename; } } /// <summary> /// 构造函数 /// </summary> /// <param name="TableName">表名称</param> public ZXTableNameAttribute(string TableName) { this._tablename = TableName; } } [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] public sealed class Key : Attribute { private bool _key; public bool KEY { get { return _key; } } /// <summary> /// 构造函数 /// </summary> /// <param name="TableName">表名称</param> public Key(bool KEY) { this._key = KEY; } } [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] public sealed class IsInsert : Attribute { private bool _fildename; public bool FildName { get { return _fildename; } } /// <summary> /// 构造函数 /// </summary> /// <param name="FildName">表名称</param> public IsInsert(bool FildName=true) { this._fildename = FildName; } } /// <summary> /// 彩种编码特性 /// </summary> [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public sealed class LotteryCodeAttribute : Attribute { private string _code; public string Code { get { return _code; } } /// <summary> /// 构造函数 /// </summary> /// <param name="TableName">表名称</param> public LotteryCodeAttribute(string Code) { this._code = Code; } } }