BemsMonitoringPointHistory15min.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities {
  6. public partial class BemsMonitoringPointHistory15min {
  7. //15분 관제점 데이터
  8. [Display(Name = "현장 고유번호"), Key]
  9. public int SiteId { get; set; }
  10. [Display(Name = "설비종류"), Key]
  11. public int FacilityTypeId { get; set; }
  12. [Display(Name = "설비코드"), Key]
  13. public int FacilityCode { get; set; }
  14. [Display(Name = "설비속성고유번호"), Key]
  15. public int PropertyId { get; set; }
  16. [Display(Name = "데이터 생성시간"), Key]
  17. [Column(TypeName = "datetime")]
  18. public DateTime CreatedDateTime { get; set; }
  19. [Display(Name = "현재값"), Required]
  20. public double CurrentValue { get; set; }
  21. [ForeignKey("SiteId")]
  22. public virtual CmSite Site { get; set; }
  23. [ForeignKey("SiteId,FacilityCode,PropertyId")]
  24. public virtual BemsMonitoringPoint BemsMonitoringPoint { get; set; }
  25. [ForeignKey("FacilityTypeId")]
  26. public virtual BemsFacilityType FacilityType { get; set; }
  27. [ForeignKey("SiteId,FacilityCode,PropertyId")]
  28. public virtual FmsAlarmPoint FmsAlarmPoint { get; set; }
  29. }
  30. }