CmPatrolCoursePos.cs 870 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities
  6. {
  7. public partial class CmPatrolCoursePos
  8. {
  9. [Key]
  10. public int SiteId { get; set; }
  11. [Key]
  12. public int PatrolCourseId { get; set; }
  13. [Key]
  14. public int BuildingId { get; set; }
  15. [Key]
  16. public int FloorId { get; set; }
  17. [Key]
  18. public int PosId { get; set; }
  19. public int CourseOrder { get; set; }
  20. [ForeignKey("SiteId,PatrolCourseId")]
  21. [InverseProperty("CmPatrolCoursePos")]
  22. public virtual CmPatrolCourse CmPatrolCourse { get; set; }
  23. [ForeignKey(nameof(SiteId))]
  24. [InverseProperty(nameof(CmSite.CmPatrolCoursePos))]
  25. public virtual CmSite Site { get; set; }
  26. }
  27. }