FmsLicense.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 FmsLicense {
  7. public FmsLicense() {
  8. CmUserToLicense = new HashSet<CmUserToLicense>();
  9. }
  10. [Key]
  11. public int SiteId { get; set; }
  12. [Key]
  13. public int LicenseId { get; set; }
  14. [Required]
  15. [StringLength(52)]
  16. public string Name { get; set; }
  17. [Required]
  18. [StringLength(52)]
  19. public string IssuingOffice { get; set; }
  20. public int? BusinessFieldId { get; set; }
  21. [StringLength(52)]
  22. public string EducationalInstitute { get; set; }
  23. [StringLength(256)]
  24. public string Note { get; set; }
  25. public bool? IsUse { get; set; }
  26. [ForeignKey("BusinessFieldId")]
  27. [InverseProperty("FmsLicense")]
  28. public virtual CmBusinessField CmBusinessField { get; set; }
  29. [ForeignKey(nameof(SiteId))]
  30. [InverseProperty(nameof(CmSite.FmsLicense))]
  31. public virtual CmSite Site { get; set; }
  32. [InverseProperty("FmsLicense")]
  33. public virtual ICollection<CmUserToLicense> CmUserToLicense { get; set; }
  34. }
  35. }