导航属性优化整理
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
+17 -15
View File
@@ -5,12 +5,25 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
public class QCChallenge : BaseAuditAddEntity
public class QCChallenge : BaseAddAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("CreateUserId")]
public User CreateUser { get; set; }
[JsonIgnore]
[ForeignKey("LatestReplyUserId")]
public User LatestReplyUser { get; set; }
[JsonIgnore]
//导航属性
[ForeignKey("SubjectVisitId")]
public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>();
#endregion
@@ -36,13 +49,10 @@ namespace IRaCIS.Core.Domain.Models
public DateTime? LatestMsgTime { get; set; }
//public int ChallengeState { get; set; }
public Guid? LatestReplyUserId { get; set; }
[JsonIgnore]
[ForeignKey("LatestReplyUserId")]
public User LatestReplyUser { get; set; }
public string ChallengeCode { get; set; }
public int Code { get; set; }
@@ -68,15 +78,7 @@ namespace IRaCIS.Core.Domain.Models
public string ChallengeType { get; set; } = string.Empty;
[JsonIgnore]
//导航属性
[ForeignKey("SubjectVisitId")]
public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>();