using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Core.Mes.Client.Comm.Attribute
{
///
/// 用来标识实体类的属性最大长度
///
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class DataLengthAttribute : System.Attribute
{
private int _dataLength = 1;
///
/// 字段长度
///
public int DataLength
{
get { return _dataLength; }
set { _dataLength = value; }
}
///
/// 字段长度特性构造函数
///
/// 字段长度
public DataLengthAttribute(int dataLength)
{
_dataLength = dataLength;
}
}
}