using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 年级 /// [Comment("年级")] [Table("base_grade")] public class Grade : IEntity { /// /// 主键:1位学段+1位序号 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.None)] public short Id { get; set; } /// /// 学段 /// [Comment("学段")] [Required] public EducationStage EducationStage { get; set; } /// /// 年级号 /// [Comment("年级号")] [Required] public short GradeNumber { get; set; } /// /// 年级号2 /// [Comment("年级号2")] [Required] public short GradeNumber2 { get; set; } /// /// 名称 /// [Comment("名称")] [Required, StringLength(50)] public string Name { get; set; } /// /// 全称 /// [Comment("全称")] [Required, StringLength(100)] public string FullName { get; set; } /// /// 简称 /// [Required, StringLength(50)] public string ShortName { get; set; } /// /// 备注 /// [Comment("备注")] [StringLength(200)] public string Remark { get; set; } = ""; /// /// 状态 /// [Comment("状态")] [Required, Column(TypeName = "smallint")] public CommonStatus Status { get; set; } }