CmHoliday.cs 727 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. {
  7. public partial class CmHoliday
  8. {
  9. [Key]
  10. public int SiteId { get; set; }
  11. [Key]
  12. public short HolidayMonth { get; set; }
  13. [Key]
  14. public short HolidayDay { get; set; }
  15. [Key]
  16. public bool IsLunar { get; set; }
  17. [Required]
  18. [StringLength(16)]
  19. public string Name { get; set; }
  20. public bool? IsUse { get; set; }
  21. [ForeignKey(nameof(SiteId))]
  22. [InverseProperty(nameof(CmSite.CmHoliday))]
  23. public virtual CmSite Site { get; set; }
  24. }
  25. }