CmBuilding.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 CmBuilding {
  7. public CmBuilding() {
  8. BemsDevice = new HashSet<BemsDevice>();
  9. BemsDeviceRunHourly = new HashSet<BemsDeviceRunHourly>();
  10. BemsEnergyDaily = new HashSet<BemsEnergyDaily>();
  11. BemsEnergyGoalDaily = new HashSet<BemsEnergyGoalDaily>();
  12. BemsLoadsHourly = new HashSet<BemsLoadsHourly>();
  13. BemsMonitoringPoint = new HashSet<BemsMonitoringPoint>();
  14. BemsZone = new HashSet<BemsZone>();
  15. CmFloor = new HashSet<CmFloor>();
  16. CmPatrolPos = new HashSet<CmPatrolPos>();
  17. CmZone = new HashSet<CmZone>();
  18. CmZoneTempHumiSet = new HashSet<CmZoneTempHumiSet>();
  19. }
  20. [Display(Name = "고유번호"), Key]
  21. public int SiteId { get; set; }
  22. public int BuildingId { get; set; }
  23. [Display(Name = "빌딩명칭"), Required]
  24. [StringLength(50)]
  25. public string Name { get; set; }
  26. [Display(Name = "사용 유무")]
  27. public bool? IsUse { get; set; }
  28. public int? FileId { get; set; }
  29. public int? SortOrderNo { get; set; }
  30. [ForeignKey("SiteId")]
  31. public virtual CmSite CmSite { get; set; }
  32. [InverseProperty("CmBuilding")]
  33. public virtual ICollection<BemsDevice> BemsDevice { get; set; }
  34. [InverseProperty("CmBuilding")]
  35. public virtual ICollection<BemsDeviceRunHourly> BemsDeviceRunHourly { get; set; }
  36. [InverseProperty("CmBuilding")]
  37. public virtual ICollection<BemsEnergyDaily> BemsEnergyDaily { get; set; }
  38. [InverseProperty("CmBuilding")]
  39. public virtual ICollection<BemsEnergyGoalDaily> BemsEnergyGoalDaily { get; set; }
  40. [InverseProperty("CmBuilding")]
  41. public virtual ICollection<BemsLoadsHourly> BemsLoadsHourly { get; set; }
  42. [InverseProperty("CmBuilding")]
  43. public virtual ICollection<BemsMonitoringPoint> BemsMonitoringPoint { get; set; }
  44. [InverseProperty("CmBuilding")]
  45. public virtual ICollection<BemsZone> BemsZone { get; set; }
  46. [InverseProperty("CmBuilding")]
  47. public virtual ICollection<CmFloor> CmFloor { get; set; }
  48. [InverseProperty("CmBuilding")]
  49. public virtual ICollection<CmPatrolPos> CmPatrolPos { get; set; }
  50. [InverseProperty("CmBuilding")]
  51. public virtual ICollection<CmZone> CmZone { get; set; }
  52. [InverseProperty("CmBuilding")]
  53. public virtual ICollection<CmZoneTempHumiSet> CmZoneTempHumiSet { get; set; }
  54. }
  55. }