导航属性优化整理
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
@@ -13,49 +13,9 @@ namespace IRaCIS.Core.Domain.Models
///ReadingTableQuestionAnswer
///</summary>
[Table("ReadingTableQuestionAnswer")]
public class ReadingTableQuestionAnswer : BaseFullAuditDeleteEntity
{
/// <summary>
/// 问题Id
/// </summary>
public Guid QuestionId { get; set; }
/// <summary>
/// 表格问题Id
/// </summary>
public Guid TableQuestionId { get; set; }
/// <summary>
/// 任务Id
/// </summary>
public Guid VisitTaskId { get; set; }
/// <summary>
/// 项目Id
/// </summary>
public Guid TrialId { get; set; }
/// <summary>
/// 行号
/// </summary>
public decimal RowIndex { get; set; }
/// <summary>
/// 答案
/// </summary>
public string Answer { get; set; }
/// <summary>
/// RowId
/// </summary>
public Guid RowId { get; set; }
public class ReadingTableQuestionAnswer : BaseFullDeleteAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("RowId")]
@@ -63,21 +23,44 @@ namespace IRaCIS.Core.Domain.Models
[JsonIgnore]
[ForeignKey("QuestionId")]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
[JsonIgnore]
[ForeignKey("TableQuestionId")]
[JsonIgnore]
[ForeignKey("TableQuestionId")]
public ReadingTableQuestionTrial ReadingTableQuestionTrial { get; set; }
public ReadingTableQuestionTrial ReadingTableQuestionTrial { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
#endregion
public Guid QuestionId { get; set; }
/// <summary>
/// 表格问题Id
/// </summary>
public Guid TableQuestionId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid TrialId { get; set; }
public decimal RowIndex { get; set; }
public string Answer { get; set; }
public Guid RowId { get; set; }
}