BemsZone.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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 BemsZone {
  7. public BemsZone() {
  8. BemsDevice = new HashSet<BemsDevice>();
  9. BemsZoneActivate = new HashSet<BemsZoneActivate>();
  10. }
  11. //건물 존 정보
  12. [Display(Name = "현장 고유번호"), Key]
  13. public int SiteId { get; set; }
  14. [Display(Name = "건물번호"), Key]
  15. public int BuildingId { get; set; }
  16. [Display(Name = "존 번호"), Key]
  17. public int ZoneId { get; set; }
  18. [Display(Name = "존 명"), Required]
  19. [StringLength(52)]
  20. public string Name { get; set; }
  21. [Display(Name = "사용여부")]
  22. public bool? IsUse { get; set; }
  23. [ForeignKey("SiteId,BuildingId")]
  24. public virtual CmBuilding CmBuilding { get; set; }
  25. [InverseProperty("BemsZone")]
  26. public virtual ICollection<BemsDevice> BemsDevice { get; set; }
  27. [InverseProperty("BemsZone")]
  28. public virtual ICollection<BemsZoneActivate> BemsZoneActivate { get; set; }
  29. }
  30. }