using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 高中双上线 /// public class NceeLineCourse : IEntity { /// /// 主键 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } /// /// 高中分析计划ID /// [Comment("高中分析计划ID")] [Required] public int NceePlanId { get; set; } /// /// 数据范围类型 /// [Comment("数据范围类型")] [Required] public NceeDataScopeType Type { get; set; } /// /// 机构ID /// [Comment("机构ID")] public short? SysOrgId { get; set; } /// /// 年级ID /// public short GradeId { get; set; } /// /// 班级号 /// [Comment("班级号")] public short? ClassNumber { get; set; } /// /// 划线等级 /// [Comment("划线等级")] [Required, Column(TypeName = "smallint")] public NceeLineLevel NceeLineLevel { get; set; } /// /// 首选科目ID /// [Comment("首选科目ID")] [Required] public short DirectionCourseId { get; set; } /// /// 科目ID /// [Comment("科目ID")] [Required] public short CourseId { get; set; } /// /// 上线人数 /// [Comment("上线人数")] [Required] public int LineCount { get; set; } = 0; /// /// 总人数 /// [Comment("总人数")] [Required] public int TotalCount { get; set; } = 0; /// /// 上线比例 /// [Comment("上线比例")] [Required, Column(TypeName = "decimal(10, 8)")] public decimal LineRate { get; set; } = 0; /// /// 是否双上线 /// [Comment("是否双上线")] [Required] public bool IsDoubleLine { get; set; } = false; }