CmPartnerType.cs 937 B

123456789101112131415161718192021222324252627
  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 CmPartnerType {
  7. public CmPartnerType() {
  8. CmPartner = new HashSet<CmPartner>();
  9. FmsContract = new HashSet<FmsContract>();
  10. }
  11. //협력 업체 유형
  12. [Display(Name = "협력업체 유형"), Key]
  13. public int PartnerTypeId { get; set; }
  14. [Display(Name = "유형 이름"), Required]
  15. [StringLength(50)]
  16. public string Name { get; set; }
  17. [Display(Name = "사용 유무")]
  18. public bool? IsUse { get; set; }
  19. [InverseProperty("PartnerType")]
  20. public virtual ICollection<CmPartner> CmPartner { get; set; }
  21. [InverseProperty("PartnerType")]
  22. public virtual ICollection<FmsContract> FmsContract { get; set; }
  23. }
  24. }