CmInvestigation1.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 CmInvestigation1 {
  7. public CmInvestigation1() {
  8. CmInvestigation1History = new HashSet<CmInvestigation1History>();
  9. }
  10. [Display(Name = "고유번호"), Key]
  11. public int SiteId { get; set; }
  12. public int InvestigationId { get; set; }
  13. [Display(Name = "정보조사번호"), Required]
  14. [StringLength(20)]
  15. public string InvestigationNo { get; set; }
  16. [Display(Name = "정보조사타입"), Required]
  17. public int InvestigationGroupId { get; set; }
  18. [Display(Name = "정보조사분류"), Required]
  19. public int InvestigationTypeId { get; set; }
  20. [Display(Name = "정보조사이름"), Required]
  21. [StringLength(200)]
  22. public string Name { get; set; }
  23. [Display(Name = "정보조사설명")]
  24. [StringLength(2000)]
  25. public string Description { get; set; }
  26. [Display(Name = "본사등록여부")]
  27. public bool IsAllSite { get; set; }
  28. [Display(Name = "정보조사파일")]
  29. [NotMapped]
  30. public CmFile CmFile { get; set; }
  31. [NotMapped]
  32. public String CreateUserId { get; set; }
  33. [ForeignKey("InvestigationGroupId")]
  34. public virtual CmInvestigation1CodeGroup CmInvestigation1CodeGroup { get; set; }
  35. [ForeignKey("InvestigationTypeId")]
  36. public virtual CmInvestigation1CodeType CmInvestigation1CodeType { get; set; }
  37. [ForeignKey("SiteId")]
  38. public virtual CmSite CmSite { get; set; }
  39. [InverseProperty("CmInvestigation1")]
  40. public virtual ICollection<CmInvestigation1History> CmInvestigation1History { get; set; }
  41. }
  42. }