ConnectorMeterValueRecord.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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("ConnectorMeterValueRecord")]
  11. public class ConnectorMeterValueRecord
  12. {
  13. public ConnectorMeterValueRecord()
  14. {
  15. TransactionId = -1;
  16. }
  17. [Key]
  18. public Int64 Id { set; get; }
  19. [StringLength(50)]
  20. public string ChargeBoxId { get; set; }
  21. public byte ConnectorId { set; get; }
  22. public int TransactionId { set; get; }
  23. public int ContextId { set; get; }
  24. public int FormatId { set; get; }
  25. public int MeasurandId{ set; get; }
  26. public int PhaseId { set; get; }
  27. public int LocationId { set; get; }
  28. [StringLength(10)]
  29. public string Value { set; get; }
  30. public int UnitId { set; get; }
  31. public DateTime CreatedOn { set; get; }
  32. }
  33. }