using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Infrastructure.Domain;
namespace Application.Domain.Entities
{
///
/// 习题,和资源逻辑相同。考题和习题的区别是:考题=试卷Id+全部习题属性+分值等
///
[Display(Name = "习题")]
public class Question : BaseEntity
{
[Display(Name = "题目")]
public string Title { get; set; }
[Display(Name = "选项")]
public string Options { get; set; }
[Display(Name = "答案")]
public string Answer { get; set; }
[Display(Name = "用户")]
public Guid? UserId { get; set; }
public User User { get; set; }
[Display(Name = "章节")]
public Guid? SectionId { get; set; }
[Display(Name = "课程")]
public Guid CourseId { get; set; }
public Section Section { get; set; }
public Course Course { get; set; }
public List UserQuestions { get; set; } = new List();
}
}