/// <summary>
 /// 用于向 DataPackets EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToDataPackets(DataPacket dataPacket)
 {
     base.AddObject("DataPackets", dataPacket);
 }
 /// <summary>
 /// 创建新的 DataPacket 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="startTime">StartTime 属性的初始值。</param>
 /// <param name="endTime">EndTime 属性的初始值。</param>
 /// <param name="sendtime">Sendtime 属性的初始值。</param>
 /// <param name="reactionTime">ReactionTime 属性的初始值。</param>
 /// <param name="receiveTime">ReceiveTime 属性的初始值。</param>
 /// <param name="planFrameCount">PlanFrameCount 属性的初始值。</param>
 /// <param name="actualFrameCount">ActualFrameCount 属性的初始值。</param>
 /// <param name="normalFrameCount">NormalFrameCount 属性的初始值。</param>
 /// <param name="errorFrameCount">ErrorFrameCount 属性的初始值。</param>
 /// <param name="lengthOfData">LengthOfData 属性的初始值。</param>
 /// <param name="lengthOfAcceptedData">LengthOfAcceptedData 属性的初始值。</param>
 /// <param name="ratioOfAcceptedData">RatioOfAcceptedData 属性的初始值。</param>
 /// <param name="costTime">CostTime 属性的初始值。</param>
 public static DataPacket CreateDataPacket(global::System.Int32 id, global::System.DateTime startTime, global::System.DateTime endTime, global::System.DateTime sendtime, global::System.Double reactionTime, global::System.DateTime receiveTime, global::System.Int32 planFrameCount, global::System.Int32 actualFrameCount, global::System.Int32 normalFrameCount, global::System.Int32 errorFrameCount, global::System.Int32 lengthOfData, global::System.Int32 lengthOfAcceptedData, global::System.Double ratioOfAcceptedData, global::System.Double costTime)
 {
     DataPacket dataPacket = new DataPacket();
     dataPacket.Id = id;
     dataPacket.StartTime = startTime;
     dataPacket.EndTime = endTime;
     dataPacket.Sendtime = sendtime;
     dataPacket.ReactionTime = reactionTime;
     dataPacket.ReceiveTime = receiveTime;
     dataPacket.PlanFrameCount = planFrameCount;
     dataPacket.ActualFrameCount = actualFrameCount;
     dataPacket.NormalFrameCount = normalFrameCount;
     dataPacket.ErrorFrameCount = errorFrameCount;
     dataPacket.LengthOfData = lengthOfData;
     dataPacket.LengthOfAcceptedData = lengthOfAcceptedData;
     dataPacket.RatioOfAcceptedData = ratioOfAcceptedData;
     dataPacket.CostTime = costTime;
     return dataPacket;
 }