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