using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace FMSAdmin.Entities { public partial class CmBuilding { public CmBuilding() { BemsDevice = new HashSet(); BemsDeviceRunHourly = new HashSet(); BemsEnergyDaily = new HashSet(); BemsEnergyGoalDaily = new HashSet(); BemsLoadsHourly = new HashSet(); BemsMonitoringPoint = new HashSet(); BemsZone = new HashSet(); CmFloor = new HashSet(); CmPatrolPos = new HashSet(); CmZone = new HashSet(); CmZoneTempHumiSet = new HashSet(); } [Display(Name = "고유번호"), Key] public int SiteId { get; set; } public int BuildingId { get; set; } [Display(Name = "빌딩명칭"), Required] [StringLength(50)] public string Name { get; set; } [Display(Name = "사용 유무")] public bool? IsUse { get; set; } public int? FileId { get; set; } public int? SortOrderNo { get; set; } [ForeignKey("SiteId")] public virtual CmSite CmSite { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection BemsDevice { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection BemsDeviceRunHourly { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection BemsEnergyDaily { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection BemsEnergyGoalDaily { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection BemsLoadsHourly { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection BemsMonitoringPoint { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection BemsZone { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection CmFloor { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection CmPatrolPos { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection CmZone { get; set; } [InverseProperty("CmBuilding")] public virtual ICollection CmZoneTempHumiSet { get; set; } } }