PortHttBatchSampleResultEntityWithCheck.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Runtime.Serialization;
  7. using System.Runtime.Serialization.Formatters.Binary;
  8. using System.Text;
  9. using Core.Mes.Client.Comm.Attribute;
  10. namespace Core.StlMes.Client.Mcp.Control.Entity
  11. {
  12. [Serializable]
  13. /// <summary>
  14. /// 数据库表PORT_HTT_BATCH_SAMPLE_RESULT所对应的实体类(生成工具:代码生成工具3.0)
  15. /// 作者:PC-20180117CCCC 时间:2018-06-07
  16. /// </summary>
  17. public class PortHttBatchSampleResultEntityWithCheck: PortHttBatchSampleResultEntity
  18. {
  19. [Description("选择")]
  20. [Nullable(true)]
  21. [DataLength(20)]
  22. public bool Check { get; set; }
  23. public PortHttBatchSampleResultEntityWithCheck Clone()
  24. {
  25. using (var memStream = new MemoryStream())
  26. {
  27. var binaryFormatter = new BinaryFormatter(null,
  28. new StreamingContext(StreamingContextStates.Clone));
  29. binaryFormatter.Serialize(memStream, this);
  30. memStream.Seek(0, SeekOrigin.Begin);
  31. return binaryFormatter.Deserialize(memStream) as PortHttBatchSampleResultEntityWithCheck;
  32. }
  33. }
  34. }
  35. }