17 lines
541 B
C#
17 lines
541 B
C#
namespace JiShe.CollectBus.IoTDB.Attribute
|
||
{
|
||
/// <summary>
|
||
/// 用于标识当前实体为单侧点模式,单侧点模式只有一个Filed标识字段,类型是Tuple<string,object>,Item1=>测点名称,Item2=>测点值,泛型
|
||
/// </summary>
|
||
[AttributeUsage(AttributeTargets.Property)]
|
||
public class SingleMeasuringAttribute : System.Attribute
|
||
{
|
||
public string FieldName { get; set;}
|
||
|
||
public SingleMeasuringAttribute(string fieldName)
|
||
{
|
||
FieldName = fieldName;
|
||
}
|
||
}
|
||
}
|