using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 科目 /// [Comment("科目")] [Table("base_course")] public partial class Course : DEntityBase { /// /// 主键 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public override short Id { get; set; } /// /// 名称 /// [Comment("名称")] [Required, StringLength(50)] public string Name { get; set; } /// /// 简称 /// [Comment("简称")] [Required, StringLength(50)] public string ShortName { get; set; } /// /// 别名 /// [Comment("别名")] [StringLength(50)] public string NickName { get; set; } /// /// 备注 /// [Comment("备注")] [StringLength(200)] public string Remark { get; set; } /// /// 状态 /// [Comment("状态")] [Required, Column(TypeName = "smallint")] public CommonStatus Status { get; set; } = CommonStatus.ENABLE; }