using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; namespace YBEE.EQM.Core; /// /// 抽样方案学生 /// [Comment("抽样方案学生")] public class ExamSampleStudent : IEntity { /// /// 主键 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } /// /// 抽样方案ID /// [Comment("抽样方案ID")] [Required] public int ExamSampleId { get; set; } /// /// 监测样本学生ID /// [Comment("监测样本学生ID")] [Required] public int ExamStudentId { get; set; } /// /// 监测号 /// [Comment("监测号")] [Required, StringLength(20)] public string ExamNumber { get; set; } = ""; /// /// 监测抽样类型 /// [Comment("监测抽样类型")] [Required, Column(TypeName = "smallint")] public ExamSampleType ExamSampleType { get; set; } = ExamSampleType.SCHOOL; }