FmsWorkCodeLegalInspectionAgency.cs 661 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 FmsWorkCodeLegalInspectionAgency
  8. {
  9. [Key]
  10. public int SiteId { get; set; }
  11. [Key]
  12. public int InspectionAgencyId { get; set; }
  13. [Required]
  14. [StringLength(24)]
  15. public string Name { get; set; }
  16. public bool? IsUse { get; set; }
  17. [ForeignKey(nameof(SiteId))]
  18. [InverseProperty(nameof(CmSite.FmsWorkCodeLegalInspectionAgency))]
  19. public virtual CmSite Site { get; set; }
  20. }
  21. }