using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FMSAdmin.Entities
{
    public partial class FmsWorkOrderToFacility
    {
        [Key]
        public int SiteId { get; set; }
        [Key]
        public int WorkRequestId { get; set; }
        [Key]
        public int FacilityCode { get; set; }

        [ForeignKey("SiteId,FacilityCode")]
        [InverseProperty("FmsWorkOrderToFacility")]
        public virtual CmFacility CmFacility { get; set; }
        [ForeignKey("SiteId,WorkRequestId")]
        [InverseProperty("FmsWorkOrderToFacility")]
        public virtual FmsWorkOrder FmsWorkOrder { get; set; }
    }
}
