using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace YBEE.EQM.Core;
///
/// 高中选科组合
///
[Comment("高中选科组合")]
[Table("ncee_course_comb")]
public class NceeCourseComb : IEntity
{
///
/// 主键
///
[Comment("主键")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public short Id { get; set; }
///
/// 首选科目ID
///
[Comment("首选科目ID")]
[Required]
public short FirstCourseId { get; set; }
///
/// 再选科目1ID
///
[Comment("再选科目1ID")]
[Required]
public short SecondCourseId { get; set; }
///
/// 再选科目2ID
///
[Comment("再选科目2ID")]
[Required]
public short ThirdCourseId { get; set; }
///
/// 名称
///
[Comment("名称")]
[Required]
public string Name { get; set; }
///
/// 简称
///
[Comment("简称")]
[Required]
public string ShortName { get; set; }
///
/// 一对一引用(首选科目)
///
public virtual Course FirstCourse { get; set; }
///
/// 一对一引用(再选科目1)
///
public virtual Course SecondCourse { get; set; }
///
/// 一对一引用(再选科目2)
///
public virtual Course ThirdCourse { get; set; }
}