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.

39 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Infrastructure.Domain;
namespace Application.Domain.Entities
{
/// <summary>
/// 习题,和资源逻辑相同。考题和习题的区别是:考题=试卷Id+全部习题属性+分值等
/// </summary>
[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<UserQuestion> UserQuestions { get; set; } = new List<UserQuestion>();
}
}