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 long ExamStudentId { get; set; } /// /// 监测号 /// [Comment("监测号")] [Required, StringLength(20)] public string ExamNumber { get; set; } = ""; /// /// 序号 /// [Comment("序号")] [Required] public int Sequence { get; set; } = 0; /// /// 监测抽样类型 /// [Comment("监测抽样类型")] [Required, Column(TypeName = "smallint")] public ExamSampleType ExamSampleType { get; set; } = ExamSampleType.SCHOOL_EXAM; /// /// 是否为特殊学生 /// [Comment("是否为特殊学生")] [Required] public bool IsSpecialStudent { get; set; } = false; /// /// 前期总成绩 /// [Comment("前期总成绩")] [Required, Column(TypeName = "decimal(10, 2)")] public decimal PreTotalScore { get; set; } = 0; /// /// 一对一引用(监测学生) /// public virtual ExamStudent ExamStudent { get; set; } /// /// 一对一引用(监测抽样) /// public virtual ExamSample ExamSample { get; set; } }