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