CmHolidayCustom.cs 665 B

123456789101112131415161718192021222324
  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 CmHolidayCustom
  8. {
  9. [Key]
  10. public int SiteId { get; set; }
  11. [Key]
  12. [Column(TypeName = "datetime")]
  13. public DateTime HolidayDate { get; set; }
  14. [Required]
  15. [StringLength(16)]
  16. public string Name { get; set; }
  17. public bool? IsUse { get; set; }
  18. [ForeignKey(nameof(SiteId))]
  19. [InverseProperty(nameof(CmSite.CmHolidayCustom))]
  20. public virtual CmSite Site { get; set; }
  21. }
  22. }