CmFloor.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 CmFloor {
  7. public CmFloor() {
  8. BemsMonitoringPoint = new HashSet<BemsMonitoringPoint>();
  9. CmPatrolPos = new HashSet<CmPatrolPos>();
  10. CmZone = new HashSet<CmZone>();
  11. CmZoneTempHumiSet = new HashSet<CmZoneTempHumiSet>();
  12. FmsMaterialWarehouse = new HashSet<FmsMaterialWarehouse>();
  13. }
  14. [Key]
  15. public int SiteId { get; set; }
  16. [Key]
  17. public int BuildingId { get; set; }
  18. [Key]
  19. public int FloorId { get; set; }
  20. [Required]
  21. [StringLength(50, ErrorMessage = "빌딩명은 최대 50자까지 입력 가능합니다.")]
  22. public string Name { get; set; }
  23. public int FloorCode { get; set; }
  24. [NotMapped]
  25. [Display(Name = "엑셀행번호")]
  26. public int ExcelRowNum { get; set; }
  27. [ForeignKey("SiteId")]
  28. public virtual CmSite CmSite { get; set; }
  29. [ForeignKey("SiteId,BuildingId")]
  30. public virtual CmBuilding CmBuilding { get; set; }
  31. [ForeignKey("FloorCode")]
  32. public virtual CmFloorCode CmFloorCode { get; set; }
  33. [InverseProperty("CmFloor")]
  34. public virtual ICollection<BemsMonitoringPoint> BemsMonitoringPoint { get; set; }
  35. [InverseProperty("CmFloor")]
  36. public virtual ICollection<CmPatrolPos> CmPatrolPos { get; set; }
  37. [InverseProperty("CmFloor")]
  38. public virtual ICollection<CmZone> CmZone { get; set; }
  39. [InverseProperty("CmFloor")]
  40. public virtual ICollection<CmZoneTempHumiSet> CmZoneTempHumiSet { get; set; }
  41. [InverseProperty("CmFloor")]
  42. public virtual ICollection<FmsMaterialWarehouse> FmsMaterialWarehouse { get; set; }
  43. }
  44. }