You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.0 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Infrastructure.Domain;
namespace Application.Domain.Entities
{
/// <summary>
/// 课程,具有唯一编号
/// </summary>
[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<Term> Terms { get; set; } = new List<Term>();
public List<Resource> Resources { get; set; } = new List<Resource>();
public List<Question> Questions { get; set; } = new List<Question>();
}
}