using System;
namespace FCS.Models
{
///
/// 彩种表名称特性
///
[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;
}
}
///
/// 彩种编码特性
///
[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;
}
}
public sealed class TableAttribute : Attribute
{
public string Name { get; set; }
///
/// 构造函数
///
/// 表名称
public TableAttribute(string Name)
{
this.Name = Name;
}
}
}