ExamSampleStudent.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace YBEE.EQM.Core;
  6. /// <summary>
  7. /// 抽样方案学生
  8. /// </summary>
  9. [Comment("抽样方案学生")]
  10. public class ExamSampleStudent : IEntity
  11. {
  12. /// <summary>
  13. /// 主键
  14. /// </summary>
  15. [Comment("主键")]
  16. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  17. public long Id { get; set; }
  18. /// <summary>
  19. /// 抽样方案ID
  20. /// </summary>
  21. [Comment("抽样方案ID")]
  22. [Required]
  23. public int ExamSampleId { get; set; }
  24. /// <summary>
  25. /// 监测样本学生ID
  26. /// </summary>
  27. [Comment("监测样本学生ID")]
  28. [Required]
  29. public int ExamStudentId { get; set; }
  30. /// <summary>
  31. /// 监测号
  32. /// </summary>
  33. [Comment("监测号")]
  34. [Required, StringLength(20)]
  35. public string ExamNumber { get; set; } = "";
  36. /// <summary>
  37. /// 监测抽样类型
  38. /// </summary>
  39. [Comment("监测抽样类型")]
  40. [Required, Column(TypeName = "smallint")]
  41. public ExamSampleType ExamSampleType { get; set; } = ExamSampleType.SCHOOL;
  42. }