using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using Core.Mes.Client.Comm.Attribute; namespace Core.StlMes.Client.Mcp.Control.Entity { [Serializable] /// /// 数据库表PORT_HTT_BATCH_SAMPLE_RESULT所对应的实体类(生成工具:代码生成工具3.0) /// 作者:PC-20180117CCCC 时间:2018-06-07 /// public class PortHttBatchSampleResultEntityWithCheck: PortHttBatchSampleResultEntity { [Description("选择")] [Nullable(true)] [DataLength(20)] public bool Check { get; set; } public PortHttBatchSampleResultEntityWithCheck Clone() { using (var memStream = new MemoryStream()) { var binaryFormatter = new BinaryFormatter(null, new StreamingContext(StreamingContextStates.Clone)); binaryFormatter.Serialize(memStream, this); memStream.Seek(0, SeekOrigin.Begin); return binaryFormatter.Deserialize(memStream) as PortHttBatchSampleResultEntityWithCheck; } } } }