1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- namespace FCS.Models
- {
- /// <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;
- }
- }
- /// <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;
- }
- }
- public sealed class TableAttribute : Attribute
- {
- public string Name { get; set; }
- /// <summary>
- /// 构造函数
- /// </summary>
- /// <param name="TableName">表名称</param>
- public TableAttribute(string Name)
- {
- this.Name = Name;
- }
- }
- }
|