FmsWorkResultFile.cs 685 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. {
  7. public partial class FmsWorkResultFile
  8. {
  9. [Key]
  10. public int SiteId { get; set; }
  11. [Key]
  12. public int WorkRequestId { get; set; }
  13. public int FileId { get; set; }
  14. [ForeignKey("SiteId,FileId")]
  15. [InverseProperty("FmsWorkResultFile")]
  16. public virtual CmFile CmFile { get; set; }
  17. [ForeignKey("SiteId,WorkRequestId")]
  18. [InverseProperty("FmsWorkResultFile")]
  19. public virtual FmsWorkResult FmsWorkResult { get; set; }
  20. }
  21. }