添加问题分类字段

This commit is contained in:
he
2023-09-14 14:02:23 +08:00
parent 46ad5920de
commit 8d8b41253e
9 changed files with 117 additions and 29 deletions
@@ -203,6 +203,10 @@ namespace IRaCIS.Core.Domain.Models
/// </summary>
public string? FileType { get; set; }
/// <summary>
/// 问题分类
/// </summary>
public QuestionClassify? QuestionClassify { get; set; }
[JsonIgnore]
[ForeignKey("GroupId")]
@@ -261,7 +261,12 @@ namespace IRaCIS.Core.Domain.Models
/// </summary>
public Guid? GroupId { get; set; }
[JsonIgnore]
/// <summary>
/// 问题分类
/// </summary>
public QuestionClassify? QuestionClassify { get; set; }
[JsonIgnore]
[ForeignKey("GroupId")]
public ReadingQuestionTrial GroupInfo { get; set; }
@@ -176,7 +176,12 @@ namespace IRaCIS.Core.Domain.Models
/// </summary>
public string? FileType { get; set; }
[ForeignKey("DependParentId")]
/// <summary>
/// 问题分类
/// </summary>
public QuestionClassify? QuestionClassify { get; set; }
[ForeignKey("DependParentId")]
[JsonIgnore]
public ReadingTableQuestionSystem DependParentQuestion { get; set; }
@@ -195,7 +195,12 @@ namespace IRaCIS.Core.Domain.Models
/// </summary>
public string? FileType { get; set; }
[JsonIgnore]
/// <summary>
/// 问题分类
/// </summary>
public QuestionClassify? QuestionClassify { get; set; }
[JsonIgnore]
[ForeignKey("DependParentId")]
public ReadingTableQuestionTrial DependParentQuestion { get; set; }