MachineError.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace EVCB_OCPP.Domain.Models.Database
  9. {
  10. [Table("MachineError")]
  11. public partial class MachineError
  12. {
  13. public MachineError()
  14. {
  15. }
  16. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  17. [Key]
  18. public int Id { get; set; }
  19. [StringLength(25)]
  20. public string ChargePointSerialNumber { get; set; }
  21. /// <summary>
  22. /// 槍號
  23. /// </summary>
  24. public byte ConnectorId { get; set; }
  25. /// <summary>
  26. /// 先前的狀態
  27. /// </summary>
  28. public int PreStatus { get; set; }
  29. /// <summary>
  30. /// 錯誤的狀態
  31. /// </summary>
  32. public int Status { get; set; }
  33. /// <summary>
  34. /// 錯誤代碼
  35. /// </summary>
  36. public int ErrorCode { get; set; }
  37. /// <summary>
  38. ///ErrorInfo
  39. /// </summary>
  40. [StringLength(50)]
  41. public string ErrorInfo { set; get; }
  42. /// <summary>
  43. /// vendorId
  44. /// </summary>
  45. [StringLength(255)]
  46. public string VendorId { set; get; }
  47. /// <summary>
  48. /// vendorErrorCode
  49. /// </summary>
  50. public int VendorErrorCodeNum { set; get; }
  51. [Required]
  52. public DateTime? CreatedOn { get; set; }
  53. }
  54. }