CmZone.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 CmZone {
  7. public CmZone() {
  8. BemsMonitoringPoint = new HashSet<BemsMonitoringPoint>();
  9. FmsMaterialWarehouse = new HashSet<FmsMaterialWarehouse>();
  10. }
  11. [Display(Name = "고유번호"), Key]
  12. public int SiteId { get; set; }
  13. public int BuildingId { get; set; }
  14. public int FloorId { get; set; }
  15. public int ZoneId { get; set; }
  16. [Display(Name = "구역명칭"), Required]
  17. [StringLength(50, ErrorMessage = "구역명칭은 최대 50자까지 입력 가능합니다.")]
  18. public string Name { get; set; }
  19. [NotMapped]
  20. [Display(Name = "엑셀행번호")]
  21. public int ExcelRowNum { get; set; }
  22. [Column("Target_temperature")]
  23. public double? TargetTemperature { get; set; }
  24. [Column("Target_humidity")]
  25. public short? TargetHumidity { get; set; }
  26. [ForeignKey("SiteId")]
  27. public virtual CmSite CmSite { get; set; }
  28. [ForeignKey("SiteId,BuildingId")]
  29. public virtual CmBuilding CmBuilding { get; set; }
  30. [ForeignKey("SiteId,BuildingId,FloorId")]
  31. public virtual CmFloor CmFloor { get; set; }
  32. [InverseProperty("CmZone")]
  33. public virtual CmZoneTempHumiSet CmZoneTempHumiSet { get; set; }
  34. [InverseProperty("CmZone")]
  35. public virtual ICollection<BemsMonitoringPoint> BemsMonitoringPoint { get; set; }
  36. [InverseProperty("CmZone")]
  37. public virtual ICollection<FmsMaterialWarehouse> FmsMaterialWarehouse { get; set; }
  38. }
  39. }