ProtocolDetail.cs
2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using RCS.Model.Entity.PrimaryKey;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static RCS.Model.Comm.EnumMsg;
namespace RCS.Model.Entity
{
/// <summary>
/// 协议详情
/// </summary>
public class ProtocolDetail : IdEntity, ICloneable
{
/// <summary>
/// 序号
/// </summary>
public int SerialNo { get; set; }
/// <summary>
/// 所属协议
/// </summary>
public string ProtocolCode { get; set; }
[NotMapped]
public Protocol? Protocol { get; set; }
/// <summary>
/// 编号
/// </summary>
public string Code { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 数据起始索引
/// </summary>
public double StartIndex { get; set; }
/// <summary>
/// 数据结束索引,可空,string类型需要使用
/// </summary>
public double EndIndex { get; set; }
/// <summary>
/// 数据长度
/// </summary>
public int DataLength { get; set; }
/// <summary>
/// 数据类型
/// </summary>
public DataType DataType { get; set; }
/// <summary>
/// 目标类型- 数据接收后需要转为的其他类型
/// </summary>
public DataType? DestDataType { get; set; }
/// <summary>
/// 描述
/// </summary>
public string? Desc { get; set; }
/// <summary>
/// 父级协议详情ID
/// </summary>
public int ParentId { get; set; }
/// <summary>
/// 是否必须
/// </summary>
public bool IsRequire { get; set; }
[NotMapped]
public object? Value { get; set; }
public object Clone()
{
return this.MemberwiseClone();
}
}
}