ExamResult.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace YBEE.EQM.Core;
  4. /// <summary>
  5. /// 监测结果
  6. /// </summary>
  7. [Comment("监测结果")]
  8. public class ExamResult : DEntityBase
  9. {
  10. /// <summary>
  11. /// 监测计划ID
  12. /// </summary>
  13. [Comment("监测计划ID")]
  14. [Required]
  15. public int ExamPlanId { get; set; }
  16. /// <summary>
  17. /// 监测结果发布内容ID
  18. /// </summary>
  19. [Comment("监测结果发布内容ID")]
  20. [Required]
  21. public int ExamDataPublishId { get; set; }
  22. /// <summary>
  23. /// 文件名
  24. /// </summary>
  25. [Comment("文件名")]
  26. [Required, StringLength(100)]
  27. public string FileName { get; set; }
  28. /// <summary>
  29. /// 文件路径
  30. /// </summary>
  31. [Comment("文件路径")]
  32. [Required, StringLength(300)]
  33. public string FilePath { get; set; }
  34. /// <summary>
  35. /// 扩展名
  36. /// </summary>
  37. [Comment("扩展名")]
  38. [Required, StringLength(50)]
  39. public string FileExtName { get; set; }
  40. /// <summary>
  41. /// 文件大小
  42. /// </summary>
  43. [Comment("文件大小")]
  44. [Required]
  45. public long FileSize { get; set; } = 0;
  46. }