FmsAlarmLog.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 FmsAlarmLog {
  7. public FmsAlarmLog() {
  8. }
  9. [Display(Name = "현장 고유번호"), Key]
  10. public int SiteId { get; set; }
  11. [Display(Name = "설비종류"), Key]
  12. public int FacilityTypeId { get; set; }
  13. [Display(Name = "설비코드")]
  14. public int FacilityCode { get; set; }
  15. [Display(Name = "설비속성고유번호"), Key]
  16. public int PropertyId { get; set; }
  17. [Display(Name = "등록일시"), Key]
  18. [Column(TypeName = "datetime")]
  19. public DateTime CreatedDateTime { get; set; }
  20. [Display(Name = "현재값")]
  21. public double CurrentValue { get; set; }
  22. [Display(Name = "푸시발송여부")]
  23. public bool IsSendPush { get; set; }
  24. [ForeignKey("SiteId")]
  25. public virtual CmSite Site { get; set; }
  26. [ForeignKey("SiteId,FacilityCode")]
  27. public virtual CmFacility Facility { get; set; }
  28. [ForeignKey("SiteId,FacilityCode,PropertyId")]
  29. public virtual FmsAlarmPoint AlarmPoint { get; set; }
  30. }
  31. }