导航属性优化整理
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-08-22 20:10:59 +08:00
parent 4319982be9
commit 47ec4a5e7e
142 changed files with 1860 additions and 2493 deletions
@@ -9,49 +9,45 @@ namespace IRaCIS.Core.Domain.Models
/// 阅片全局任务信息
///</summary>
[Table("ReadingGlobalTaskInfo")]
public class ReadingGlobalTaskInfo : BaseAuditAddEntity
{
/// <summary>
public class ReadingGlobalTaskInfo : BaseAddAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("TaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("GlobalTaskId")]
public VisitTask GlobalVisitTask { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
#endregion
/// <summary>
/// 全局任务Id
/// </summary>
public Guid GlobalTaskId { get; set; }
public Guid GlobalTaskId { get; set; }
/// <summary>
/// 原任务ID
/// </summary>
public Guid TaskId { get; set; }
[JsonIgnore]
[ForeignKey("TaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("GlobalTaskId")]
public VisitTask GlobalVisitTask { get; set; }
/// <summary>
/// 问题ID
/// </summary>
public Guid? QuestionId { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
/// <summary>
/// 问题答案
/// </summary>
public string Answer { get; set; }
/// <summary>
/// TrialId
/// </summary>
public Guid TrialId { get; set; }
@@ -60,9 +56,6 @@ namespace IRaCIS.Core.Domain.Models
/// </summary>
public GlobalAnswerType GlobalAnswerType { get; set; }
/// <summary>
/// SubjectId
/// </summary>
public Guid SubjectId { get; set; }
}