修改site关联
This commit is contained in:
@@ -9,12 +9,26 @@ namespace IRaCIS.Core.Domain.Models
|
||||
[Table("SubjectVisit")]
|
||||
public class SubjectVisit : Entity, IAuditUpdate, IAuditAdd, ISoftDelete
|
||||
{
|
||||
//一个访视 对应有对应Site的 TrialSiteCode 所以 fluentApi中配置 TrialSite 连表用TrialId SiteId 双字段
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public Guid TrialSiteId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public TrialSite TrialSite { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//一个访视 对应有对应Site的 TrialSiteCode
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid SubjectId { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public VisitStage VisitStage { get; set; }
|
||||
@@ -197,9 +211,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||
[ForeignKey("TrialId")]
|
||||
public Trial Trial { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("SiteId")]
|
||||
public Site Site { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("SubjectId")]
|
||||
|
||||
Reference in New Issue
Block a user