CmPatrolGroupUser.cs 718 B

1234567891011121314151617181920212223
  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 CmPatrolGroupUser {
  7. [Key]
  8. public int SiteId { get; set; }
  9. [Key]
  10. public int PatrolGroupId { get; set; }
  11. [Key]
  12. [StringLength(24)]
  13. public string UserId { get; set; }
  14. [ForeignKey("SiteId,PatrolGroupId")]
  15. [InverseProperty("CmPatrolGroupUser")]
  16. public virtual CmPatrolGroup CmPatrolGroup { get; set; }
  17. [ForeignKey("UserId")]
  18. [InverseProperty("CmPatrolGroupUser")]
  19. public virtual CmUser CmUser { get; set; }
  20. }
  21. }