using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Infrastructure.Domain; namespace Application.Domain.Entities { /// /// 课程,具有唯一编号 /// [Display(Name = "课程")] public class Course : BaseEntity { [Display(Name = "名称")] public string Name { get; set; } [Display(Name = "编号")] public string Number { get; set; } [Display(Name = "图片")] [DataType(DataType.ImageUrl)] public string Image { get; set; } [Display(Name = "简介")] public string Description { get; set; } [Display(Name = "分类")] public Guid? CategoryId { get; set; } public CourseCategory Category { get; set; } public List Terms { get; set; } = new List(); public List Resources { get; set; } = new List(); public List Questions { get; set; } = new List(); } }