using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace YBEE.EQM.Core; /// /// 校考成绩上报文件 /// public class ExamOrgScoreReport : DEntityBase { /// /// 监测机构ID /// [Comment("监测机构ID")] [Required] public int ExamOrgId { get; set; } /// /// 监测计划ID /// [Comment("监测计划ID")] [Required] public int ExamPlanId { get; set; } /// /// 监测机构ID /// [Comment("监测机构ID")] [Required] public short SysOrgId { get; set; } /// /// 监测年级ID /// [Comment("监测年级ID")] [Required] public int ExamGradeId { get; set; } /// /// 年级ID /// [Comment("年级ID")] [Required] public short GradeId { get; set; } /// /// 科目ID /// [Comment("科目ID")] [Required] public short CourseId { get; set; } /// /// 数据行 /// [Comment("数据行")] [Required] public string DataRows { get; set; } = "[]"; /// /// 文件名 /// [Comment("文件名")] [Required, StringLength(200)] public string FileName { get; set; } /// /// 文件路径 /// [Comment("文件路径")] [Required, StringLength(300)] public string FilePath { get; set; } /// /// 扩展名 /// [Comment("扩展名")] [Required, StringLength(50)] public string FileExtName { get; set; } /// /// 文件大小 /// [Comment("文件大小")] [Required] public long FileSize { get; set; } = 0; /// /// 一对一引用(监测年级) /// public virtual ExamGrade ExamGrade { get; set; } /// /// 一对一引用(科目) /// public virtual Course Course { get; set; } }