[JsonIgnore]

Test.EIImageViewer
{872297557@qq.com} 2022-12-28 14:19:59 +08:00
parent dd45ad0c07
commit c8d1e2fb6b
41 changed files with 98 additions and 59 deletions

View File

@ -26,12 +26,13 @@ namespace IRaCIS.Core.Domain.Models
//任务来源访视Id 方便回更访视读片状态 //任务来源访视Id 方便回更访视读片状态
public Guid? SourceSubjectVisitId { get; set; } public Guid? SourceSubjectVisitId { get; set; }
[JsonIgnore]
[ForeignKey("SourceSubjectVisitId")] [ForeignKey("SourceSubjectVisitId")]
public SubjectVisit SubjectVisit { get; set; } public SubjectVisit SubjectVisit { get; set; }
public Guid? SouceReadModuleId { get; set; } public Guid? SouceReadModuleId { get; set; }
[JsonIgnore]
[ForeignKey("SouceReadModuleId")] [ForeignKey("SouceReadModuleId")]
public ReadModule ReadModule { get; set; } public ReadModule ReadModule { get; set; }

View File

@ -36,7 +36,7 @@ namespace IRaCIS.Core.Domain.Models
public Guid DoctorUserId { get; set; } public Guid DoctorUserId { get; set; }
[ForeignKey("DoctorUserId")] [ForeignKey("DoctorUserId")]
[JsonIgnore]
public User DoctorUser { get; set; } public User DoctorUser { get; set; }
@ -45,7 +45,7 @@ namespace IRaCIS.Core.Domain.Models
public Guid EnrollId { get; set; } public Guid EnrollId { get; set; }
[JsonIgnore]
public Enroll Enroll { get; set; } public Enroll Enroll { get; set; }
//是否是裁判医生 裁判医生单独加入 //是否是裁判医生 裁判医生单独加入

View File

@ -41,11 +41,11 @@ namespace IRaCIS.Core.Domain.Models
public int PlanGlobalCount { get; set; } public int PlanGlobalCount { get; set; }
public int PlanTumorCount { get; set; } public int PlanTumorCount { get; set; }
[JsonIgnore]
public User DoctorUser { get; set; } public User DoctorUser { get; set; }
[JsonIgnore]
public List<VisitTask> DoctorTrialVisitTaskList { get; set; } public List<VisitTask> DoctorTrialVisitTaskList { get; set; }
[JsonIgnore]
public List<TaskMedicalReview> TaskMedicalReviewList { get; set; } public List<TaskMedicalReview> TaskMedicalReviewList { get; set; }
} }

View File

@ -9,7 +9,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("Dictionary")] [Table("Dictionary")]
public partial class Dictionary : Entity, IAuditUpdate, IAuditAdd public partial class Dictionary : Entity, IAuditUpdate, IAuditAdd
{ {
[JsonIgnore]
public List<DoctorDictionary> DoctorDicRelationList { get; set; } = new List<DoctorDictionary>(); public List<DoctorDictionary> DoctorDicRelationList { get; set; } = new List<DoctorDictionary>();
public string ChildGroup { get; set; } public string ChildGroup { get; set; }
@ -47,14 +47,14 @@ namespace IRaCIS.Core.Domain.Models
public Guid? ConfigTypeId { get; set; } public Guid? ConfigTypeId { get; set; }
[JsonIgnore]
[ForeignKey("ConfigTypeId")] [ForeignKey("ConfigTypeId")]
public Dictionary ConfigDictionary { get; set; } public Dictionary ConfigDictionary { get; set; }
[JsonIgnore]
[ForeignKey("ParentId")] [ForeignKey("ParentId")]
public Dictionary Parent { get; set; } public Dictionary Parent { get; set; }
[JsonIgnore]
public List<Dictionary> ChildList { get; set; } = new List<Dictionary>(); public List<Dictionary> ChildList { get; set; } = new List<Dictionary>();

View File

@ -12,16 +12,17 @@ namespace IRaCIS.Core.Domain.Models
{ {
//导航属性 //导航属性
[JsonIgnore]
public List<DoctorDictionary> DoctorDicRelationList { get; set; }=new List<DoctorDictionary>(); public List<DoctorDictionary> DoctorDicRelationList { get; set; }=new List<DoctorDictionary>();
[JsonIgnore]
public List<TrialExperienceCriteria> TrialExperienceCriteriaList { get; set; } public List<TrialExperienceCriteria> TrialExperienceCriteriaList { get; set; }
// UserDoctor表关联 一个医生 可被多个用户管理 // UserDoctor表关联 一个医生 可被多个用户管理
[JsonIgnore]
public List<UserDoctor> UserList { get; set; } public List<UserDoctor> UserList { get; set; }
[JsonIgnore]
public List<Enroll> EnrollList { get; set; } public List<Enroll> EnrollList { get; set; }
@ -165,24 +166,24 @@ namespace IRaCIS.Core.Domain.Models
public string SubspecialityOtherCN { get; set; } = string.Empty; public string SubspecialityOtherCN { get; set; } = string.Empty;
public string SpecialityOtherCN { get; set; } = string.Empty; public string SpecialityOtherCN { get; set; } = string.Empty;
[JsonIgnore]
[ForeignKey("HospitalId")] [ForeignKey("HospitalId")]
public Hospital Hospital { get; set; } public Hospital Hospital { get; set; }
[JsonIgnore]
[ForeignKey("SpecialityId")] [ForeignKey("SpecialityId")]
public virtual Dictionary Speciality { get; set; } public virtual Dictionary Speciality { get; set; }
[JsonIgnore]
[ForeignKey("DepartmentId")] [ForeignKey("DepartmentId")]
public virtual Dictionary Department { get; set; } public virtual Dictionary Department { get; set; }
[JsonIgnore]
[ForeignKey("RankId")] [ForeignKey("RankId")]
public virtual Dictionary Rank { get; set; } public virtual Dictionary Rank { get; set; }
[JsonIgnore]
[ForeignKey("PositionId")] [ForeignKey("PositionId")]
public virtual Dictionary Position { get; set; } public virtual Dictionary Position { get; set; }
[JsonIgnore]
public List<Attachment> AttachmentList { get; set; } public List<Attachment> AttachmentList { get; set; }
public bool IsVirtual { get; set; } public bool IsVirtual { get; set; }

View File

@ -7,9 +7,11 @@ namespace IRaCIS.Core.Domain.Models
[Table("DoctorDictionary")] [Table("DoctorDictionary")]
public partial class DoctorDictionary : Entity public partial class DoctorDictionary : Entity
{ {
[JsonIgnore]
[ForeignKey("DoctorId")] [ForeignKey("DoctorId")]
public Doctor Doctor { get; set; } public Doctor Doctor { get; set; }
[JsonIgnore]
[ForeignKey("DictionaryId")] [ForeignKey("DictionaryId")]
public Dictionary Dictionary { get; set; } public Dictionary Dictionary { get; set; }

View File

@ -15,9 +15,10 @@ namespace IRaCIS.Core.Domain.Models
public class SystemDocConfirmedUser : Entity, IAuditAdd,ISoftDelete public class SystemDocConfirmedUser : Entity, IAuditAdd,ISoftDelete
{ {
[JsonIgnore]
public SystemDocument SystemDocument { get; set; } public SystemDocument SystemDocument { get; set; }
[JsonIgnore]
[ForeignKey("ConfirmUserId")] [ForeignKey("ConfirmUserId")]
public User User { get; set; } public User User { get; set; }

View File

@ -14,11 +14,11 @@ namespace IRaCIS.Core.Domain.Models
[Table("SystemDocNeedConfirmedUserType")] [Table("SystemDocNeedConfirmedUserType")]
public class SystemDocNeedConfirmedUserType : Entity public class SystemDocNeedConfirmedUserType : Entity
{ {
[JsonIgnore]
[ForeignKey("NeedConfirmUserTypeId")] [ForeignKey("NeedConfirmUserTypeId")]
public UserType UserTypeRole { get; set; } public UserType UserTypeRole { get; set; }
[JsonIgnore]
public SystemDocument SystemDocument { get; set; } public SystemDocument SystemDocument { get; set; }
/// <summary> /// <summary>
/// SystemDocumentId /// SystemDocumentId

View File

@ -38,6 +38,7 @@ namespace IRaCIS.Core.Domain.Models
[Required] [Required]
public Guid ConfirmUserId { get; set; } public Guid ConfirmUserId { get; set; }
[JsonIgnore]
[ForeignKey("ConfirmUserId")] [ForeignKey("ConfirmUserId")]
public User User { get; set; } public User User { get; set; }

View File

@ -15,10 +15,11 @@ namespace IRaCIS.Core.Domain.Models
[Table("TrialDocNeedConfirmedUserType")] [Table("TrialDocNeedConfirmedUserType")]
public class TrialDocNeedConfirmedUserType : Entity public class TrialDocNeedConfirmedUserType : Entity
{ {
[JsonIgnore]
[ForeignKey("NeedConfirmUserTypeId")] [ForeignKey("NeedConfirmUserTypeId")]
public UserType UserTypeRole { get; set; } public UserType UserTypeRole { get; set; }
[JsonIgnore]
public TrialDocument TrialDocument { get; set; } public TrialDocument TrialDocument { get; set; }

View File

@ -7,6 +7,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("DicomInstance")] [Table("DicomInstance")]
public class DicomInstance : Entity, IAuditAdd, IAuditUpdate public class DicomInstance : Entity, IAuditAdd, IAuditUpdate
{ {
[JsonIgnore]
[ForeignKey("SeriesId")] [ForeignKey("SeriesId")]
public DicomSeries DicomSerie { get; set; } public DicomSeries DicomSerie { get; set; }

View File

@ -14,9 +14,10 @@ namespace IRaCIS.Core.Domain.Models
[Table("StudyMonitor")] [Table("StudyMonitor")]
public class StudyMonitor : Entity, IAuditAdd public class StudyMonitor : Entity, IAuditAdd
{ {
[JsonIgnore]
[ForeignKey("StudyId")] [ForeignKey("StudyId")]
public DicomStudy DicomStudy { get; set; } public DicomStudy DicomStudy { get; set; }
[JsonIgnore]
[ForeignKey("StudyId")] [ForeignKey("StudyId")]
public NoneDicomStudy NoneDicomStudy { get; set; } public NoneDicomStudy NoneDicomStudy { get; set; }
@ -61,22 +62,23 @@ namespace IRaCIS.Core.Domain.Models
public Guid SubjectVisitId { get; set; } public Guid SubjectVisitId { get; set; }
[JsonIgnore]
[ForeignKey("SubjectId")] [ForeignKey("SubjectId")]
public Subject Subject { get; set; } public Subject Subject { get; set; }
[JsonIgnore]
[ForeignKey("SubjectVisitId")] [ForeignKey("SubjectVisitId")]
public SubjectVisit SubjectVisit { get; set; } public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
public TrialSite TrialSite { get; set; } public TrialSite TrialSite { get; set; }
[JsonIgnore]
[ForeignKey("SiteId")] [ForeignKey("SiteId")]
public Site Site { get; set; } public Site Site { get; set; }
[JsonIgnore]
[ForeignKey("TrialId")] [ForeignKey("TrialId")]
public Trial Trial { get; set; } public Trial Trial { get; set; }
[JsonIgnore]
[ForeignKey("CreateUserId")] [ForeignKey("CreateUserId")]
public User Uploader { get; set; } public User Uploader { get; set; }

View File

@ -26,6 +26,7 @@ namespace IRaCIS.Core.Domain.Models
public DateTime UpdateTime { get; set; } = DateTime.Now; public DateTime UpdateTime { get; set; } = DateTime.Now;
public Guid UpdateUserId { get; set; } = Guid.Empty; public Guid UpdateUserId { get; set; } = Guid.Empty;
[JsonIgnore]
public List<Doctor> DoctorList { get; set; } public List<Doctor> DoctorList { get; set; }
} }

View File

@ -7,6 +7,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("Site")] [Table("Site")]
public partial class Site : Entity, IAuditUpdate, IAuditAdd public partial class Site : Entity, IAuditUpdate, IAuditAdd
{ {
[JsonIgnore]
public Hospital Hospital { get; set; } public Hospital Hospital { get; set; }
public string SiteName { get; set; } public string SiteName { get; set; }
@ -33,12 +34,13 @@ namespace IRaCIS.Core.Domain.Models
public DateTime CreateTime { get; set; } = DateTime.Now; public DateTime CreateTime { get; set; } = DateTime.Now;
public Guid UpdateUserId { get; set; } = Guid.Empty; public Guid UpdateUserId { get; set; } = Guid.Empty;
public DateTime UpdateTime { get; set; } = DateTime.Now; public DateTime UpdateTime { get; set; } = DateTime.Now;
[JsonIgnore]
public List<Subject> SubjectList { get; set; } public List<Subject> SubjectList { get; set; }
//µ¼º½ÊôÐÔ //µ¼º½ÊôÐÔ
[JsonIgnore]
public List<TrialSite> TrialSiteList { get; set; } public List<TrialSite> TrialSiteList { get; set; }
[JsonIgnore]
public List< TrialSiteUser> TrialSiteUserList { get; set; } public List< TrialSiteUser> TrialSiteUserList { get; set; }
} }
} }

View File

@ -7,6 +7,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("Menu")] [Table("Menu")]
public class Menu : Entity, IAuditUpdate, IAuditAdd public class Menu : Entity, IAuditUpdate, IAuditAdd
{ {
[JsonIgnore]
public List<UserTypeMenu> UserTypeMenuList { get; set; } public List<UserTypeMenu> UserTypeMenuList { get; set; }

View File

@ -18,11 +18,12 @@ namespace IRaCIS.Core.Domain.Models
[Table("SystemNotice")] [Table("SystemNotice")]
public class SystemNotice : Entity, IAuditUpdate, IAuditAdd public class SystemNotice : Entity, IAuditUpdate, IAuditAdd
{ {
[JsonIgnore]
public List<SystemNoticeUserType> NoticeUserTypeList { get; set; }=new List<SystemNoticeUserType>(); public List<SystemNoticeUserType> NoticeUserTypeList { get; set; }=new List<SystemNoticeUserType>();
[JsonIgnore]
public List<SystemNoticeUserRead> NoticeUserReadList { get; set; }=new List<SystemNoticeUserRead>(); public List<SystemNoticeUserRead> NoticeUserReadList { get; set; }=new List<SystemNoticeUserRead>();
[JsonIgnore]
public User CreateUser { get; set; } public User CreateUser { get; set; }

View File

@ -42,6 +42,7 @@ namespace IRaCIS.Core.Domain.Models
[Required] [Required]
public Guid UserTypeId { get; set; } public Guid UserTypeId { get; set; }
[JsonIgnore]
[ForeignKey("UserTypeId")] [ForeignKey("UserTypeId")]
public UserType NoticeUserType { get; set; } public UserType NoticeUserType { get; set; }

View File

@ -13,11 +13,13 @@ namespace IRaCIS.Core.Domain.Models
[ForeignKey("UserTypeId")] [ForeignKey("UserTypeId")]
public UserType UserTypeRole { get; set; } public UserType UserTypeRole { get; set; }
[JsonIgnore]
public List<SystemDocConfirmedUser> SystemDocConfirmedList { get; set; } public List<SystemDocConfirmedUser> SystemDocConfirmedList { get; set; }
[JsonIgnore]
public List<UserDoctor> UserDoctors { get; set; } = new List<UserDoctor>(); public List<UserDoctor> UserDoctors { get; set; } = new List<UserDoctor>();
[JsonIgnore]
public List<TrialUser> UserTrials { get; set; } = new List<TrialUser>(); public List<TrialUser> UserTrials { get; set; } = new List<TrialUser>();
[JsonIgnore]
public List<VisitTask> VisitTaskList { get; set; } public List<VisitTask> VisitTaskList { get; set; }

View File

@ -28,13 +28,15 @@ namespace IRaCIS.Core.Domain.Models
[JsonIgnore]
public List<UserTypeMenu> UserTypeMenuList { get; set; } public List<UserTypeMenu> UserTypeMenuList { get; set; }
[JsonIgnore]
public List <UserTypeGroup> UserTypeGroupList { get; set; } public List <UserTypeGroup> UserTypeGroupList { get; set; }
[JsonIgnore]
public List<SystemDocNeedConfirmedUserType> SystemDocNeedConfirmedUserTypeList { get; set; } public List<SystemDocNeedConfirmedUserType> SystemDocNeedConfirmedUserTypeList { get; set; }
[JsonIgnore]
public List<User> UserList { get; set; } public List<User> UserList { get; set; }

View File

@ -28,10 +28,11 @@ namespace IRaCIS.Core.Domain.Models
[Required] [Required]
public Guid DictionaryId { get; set; } public Guid DictionaryId { get; set; }
[JsonIgnore]
[ForeignKey("DictionaryId")] [ForeignKey("DictionaryId")]
public Dictionary Group { get; set; } public Dictionary Group { get; set; }
[JsonIgnore]
[ForeignKey("UserTypeId")] [ForeignKey("UserTypeId")]
public UserType UserType { get; set; } public UserType UserType { get; set; }

View File

@ -12,6 +12,7 @@ namespace IRaCIS.Core.Domain.Models
public Guid UserTypeId { get; set; } public Guid UserTypeId { get; set; }
public Guid MenuId { get; set; } public Guid MenuId { get; set; }
[JsonIgnore]
[ForeignKey("UserTypeId")] [ForeignKey("UserTypeId")]
public UserType UserType { get; set; } public UserType UserType { get; set; }

View File

@ -76,6 +76,7 @@ namespace IRaCIS.Core.Domain.Models
//导航属性 //导航属性
[ForeignKey("SubjectVisitId")] [ForeignKey("SubjectVisitId")]
public SubjectVisit SubjectVisit { get; set; } public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore] [JsonIgnore]
public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>(); public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>();

View File

@ -42,7 +42,8 @@ namespace IRaCIS.Core.Domain.Models
/// </summary> /// </summary>
[Required] [Required]
public string TypeValue { get; set; } = string.Empty; public string TypeValue { get; set; } = string.Empty;
[JsonIgnore]
[ForeignKey("ParentId")] [ForeignKey("ParentId")]
public QCQuestion ParentQuestion { get; set; } public QCQuestion ParentQuestion { get; set; }

View File

@ -13,6 +13,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("ReadingClinicalDataPDF")] [Table("ReadingClinicalDataPDF")]
public class ReadingClinicalDataPDF : Entity, IAuditAdd public class ReadingClinicalDataPDF : Entity, IAuditAdd
{ {
[JsonIgnore]
[ForeignKey("ReadingClinicalDataId")] [ForeignKey("ReadingClinicalDataId")]
public ReadingClinicalData ReadingClinicalData { get; set; } public ReadingClinicalData ReadingClinicalData { get; set; }
/// <summary> /// <summary>

View File

@ -84,6 +84,7 @@ namespace IRaCIS.Core.Domain.Models
/// </summary> /// </summary>
public bool? IsApplyHeavyReading { get; set; } public bool? IsApplyHeavyReading { get; set; }
[JsonIgnore]
[ForeignKey("CreateUserId")] [ForeignKey("CreateUserId")]
public User CreateUser { get; set; } public User CreateUser { get; set; }
@ -97,7 +98,7 @@ namespace IRaCIS.Core.Domain.Models
/// 文件名称 /// 文件名称
/// </summary> /// </summary>
public string FileName { get; set; } = string.Empty; public string FileName { get; set; } = string.Empty;
[JsonIgnore]
[ForeignKey("TaskMedicalReviewId")] [ForeignKey("TaskMedicalReviewId")]
public TaskMedicalReview TaskMedicalReview { get; set; } public TaskMedicalReview TaskMedicalReview { get; set; }

View File

@ -49,6 +49,7 @@ namespace IRaCIS.Core.Domain.Models
/// </summary> /// </summary>
public Guid TrialCriterionId { get; set; } public Guid TrialCriterionId { get; set; }
[JsonIgnore]
[ForeignKey("OrganInfoId")] [ForeignKey("OrganInfoId")]
public OrganInfo OrganInfo { get; set; } public OrganInfo OrganInfo { get; set; }

View File

@ -56,6 +56,7 @@ namespace IRaCIS.Core.Domain.Models
public Guid ReadingQuestionCriterionTrialId { get; set; } public Guid ReadingQuestionCriterionTrialId { get; set; }
[JsonIgnore]
public List<ReadingQuestionTrial> ReadingQuestionList { get; set; } = new List<ReadingQuestionTrial>(); public List<ReadingQuestionTrial> ReadingQuestionList { get; set; } = new List<ReadingQuestionTrial>();

View File

@ -154,6 +154,7 @@ namespace IRaCIS.Core.Domain.Models
public DataSources DataSource { get; set; } = DataSources.ManualEntry; public DataSources DataSource { get; set; } = DataSources.ManualEntry;
[ForeignKey("DependParentId")] [ForeignKey("DependParentId")]
[JsonIgnore]
public ReadingTableQuestionSystem DependParentQuestion { get; set; } public ReadingTableQuestionSystem DependParentQuestion { get; set; }
} }

View File

@ -28,12 +28,14 @@ namespace IRaCIS.Core.Domain.Models
/// 访视 /// 访视
/// </summary> /// </summary>
[ForeignKey("SubjectVisitId")] [ForeignKey("SubjectVisitId")]
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; } public SubjectVisit SubjectVisit { get; set; }
/// <summary> /// <summary>
/// 阅片期配置 /// 阅片期配置
/// </summary> /// </summary>
[ForeignKey("ReadingPeriodSetId")] [ForeignKey("ReadingPeriodSetId")]
[JsonIgnore]
public ReadingPeriodSet ReadingPeriodSet { get; set; } public ReadingPeriodSet ReadingPeriodSet { get; set; }
/// <summary> /// <summary>

View File

@ -50,6 +50,7 @@ namespace IRaCIS.Core.Domain.Models
public TrialSite TrialSite { get; set; } public TrialSite TrialSite { get; set; }
[JsonIgnore]
public ReadingPeriodSet ReadingPeriodSet { get; set; } public ReadingPeriodSet ReadingPeriodSet { get; set; }

View File

@ -15,13 +15,13 @@ namespace IRaCIS.Core.Domain.Models
[Table("TrialSiteEquipmentSurvey")] [Table("TrialSiteEquipmentSurvey")]
public class TrialSiteEquipmentSurvey : Entity, IAuditUpdate, IAuditAdd public class TrialSiteEquipmentSurvey : Entity, IAuditUpdate, IAuditAdd
{ {
[JsonIgnore]
[ForeignKey("TrialSiteSurveyId")] [ForeignKey("TrialSiteSurveyId")]
public TrialSiteSurvey TrialSiteSurvey { get; set; } public TrialSiteSurvey TrialSiteSurvey { get; set; }
public Guid TrialSiteSurveyId { get; set; } public Guid TrialSiteSurveyId { get; set; }
[JsonIgnore]
[ForeignKey("EquipmentTypeId")] [ForeignKey("EquipmentTypeId")]
public Dictionary EquipmentType { get; set; } public Dictionary EquipmentType { get; set; }

View File

@ -15,12 +15,13 @@ namespace IRaCIS.Core.Domain.Models
[Table("TrialSiteUserSurvey")] [Table("TrialSiteUserSurvey")]
public class TrialSiteUserSurvey : Entity, IAuditUpdate, IAuditAdd public class TrialSiteUserSurvey : Entity, IAuditUpdate, IAuditAdd
{ {
[JsonIgnore]
[ForeignKey("TrialSiteSurveyId")] [ForeignKey("TrialSiteSurveyId")]
public TrialSiteSurvey TrialSiteSurvey { get; set; } public TrialSiteSurvey TrialSiteSurvey { get; set; }
public Guid TrialSiteSurveyId { get; set; } public Guid TrialSiteSurveyId { get; set; }
[JsonIgnore]
[ForeignKey("UserTypeId")] [ForeignKey("UserTypeId")]
public UserType UserTypeRole { get; set; } public UserType UserTypeRole { get; set; }

View File

@ -62,7 +62,7 @@ namespace IRaCIS.Core.Domain.Models
/// 生成账号 加入到项目中后 赋值 /// 生成账号 加入到项目中后 赋值
/// </summary> /// </summary>
public Guid? DoctorUserId { get; set; } public Guid? DoctorUserId { get; set; }
[JsonIgnore]
public User DoctorUser { get; set; } public User DoctorUser { get; set; }

View File

@ -7,6 +7,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("EnrollDetail")] [Table("EnrollDetail")]
public partial class EnrollDetail : Entity, IAuditAdd public partial class EnrollDetail : Entity, IAuditAdd
{ {
[JsonIgnore]
public virtual TrialStatusDetail TrialDetail { get; set; } public virtual TrialStatusDetail TrialDetail { get; set; }
public Guid DoctorId { get; set; } public Guid DoctorId { get; set; }
@ -18,12 +19,13 @@ namespace IRaCIS.Core.Domain.Models
public int OptUserType { get; set; } public int OptUserType { get; set; }
public DateTime CreateTime { get; set; } public DateTime CreateTime { get; set; }
[ForeignKey("TrialDetail")]
public Guid TrialDetailId { get; set; } public Guid TrialDetailId { get; set; }
[JsonIgnore]
[ForeignKey("CreateUserId")] [ForeignKey("CreateUserId")]
public User CreateUser { get; set; } public User CreateUser { get; set; }
[JsonIgnore]
public Doctor Doctor { get; set; } public Doctor Doctor { get; set; }
} }
} }

View File

@ -8,8 +8,9 @@ namespace IRaCIS.Core.Domain.Models
public partial class TrialDictionary : Entity public partial class TrialDictionary : Entity
{ {
//public Guid Id { get; set; } //public Guid Id { get; set; }
[JsonIgnore]
public virtual Trial Trial { get; set; } public virtual Trial Trial { get; set; }
[JsonIgnore]
public virtual Dictionary Dictionary { get; set; } public virtual Dictionary Dictionary { get; set; }
[StringLength(50)] [StringLength(50)]

View File

@ -13,6 +13,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("TrialStateChange")] [Table("TrialStateChange")]
public class TrialStateChange : Entity, IAuditAdd public class TrialStateChange : Entity, IAuditAdd
{ {
[JsonIgnore]
[ForeignKey("TrialId")] [ForeignKey("TrialId")]
public Trial Trial { get; set; } public Trial Trial { get; set; }
@ -33,7 +34,7 @@ namespace IRaCIS.Core.Domain.Models
public Guid CreateUserId { get; set; } public Guid CreateUserId { get; set; }
[JsonIgnore]
[ForeignKey("CreateUserId")] [ForeignKey("CreateUserId")]
public User User { get; set; } public User User { get; set; }

View File

@ -13,10 +13,9 @@ namespace IRaCIS.Core.Domain.Models
{ {
IntoGroupDetails = new HashSet<EnrollDetail>(); IntoGroupDetails = new HashSet<EnrollDetail>();
} }
[JsonIgnore]
public Trial Trial { get; set; } public Trial Trial { get; set; }
[ForeignKey("Trial")]
public Guid TrialId { get; set; } public Guid TrialId { get; set; }

View File

@ -15,8 +15,8 @@ namespace IRaCIS.Core.Domain.Models
[Table("TrialExternalUser")] [Table("TrialExternalUser")]
public class TrialExternalUser : Entity, IAuditUpdate, IAuditAdd public class TrialExternalUser : Entity, IAuditUpdate, IAuditAdd
{ {
[JsonIgnore]
public Trial Trial { get; set; } public Trial Trial { get; set; }
/// <summary> /// <summary>
/// TrialId /// TrialId

View File

@ -64,9 +64,9 @@ namespace IRaCIS.Core.Domain.Models
public string RejectReason { get; set; } public string RejectReason { get; set; }
[JsonIgnore]
public User User { get; set; } public User User { get; set; }
[JsonIgnore]
public Trial Trial { get; set; } public Trial Trial { get; set; }
} }

View File

@ -15,7 +15,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("VisitPlanInfluenceStat")] [Table("VisitPlanInfluenceStat")]
public class VisitPlanInfluenceStat : Entity, IAuditAdd public class VisitPlanInfluenceStat : Entity, IAuditAdd
{ {
[JsonIgnore]
public List<VisitPlanInfluenceStudy> InfluenceStudyList { get; set; }=new List<VisitPlanInfluenceStudy>(); public List<VisitPlanInfluenceStudy> InfluenceStudyList { get; set; }=new List<VisitPlanInfluenceStudy>();
public Guid TrialId { get; set; } public Guid TrialId { get; set; }
@ -38,6 +38,7 @@ namespace IRaCIS.Core.Domain.Models
[Required] [Required]
public int InconsistentCount { get; set; } public int InconsistentCount { get; set; }
[JsonIgnore]
[ForeignKey("CreateUserId")] [ForeignKey("CreateUserId")]
public User CreateUser { get; set; } public User CreateUser { get; set; }

View File

@ -13,6 +13,7 @@ namespace IRaCIS.Core.Domain.Models
[Table("VisitPlanInfluenceStudy")] [Table("VisitPlanInfluenceStudy")]
public class VisitPlanInfluenceStudy : Entity, IAuditAdd public class VisitPlanInfluenceStudy : Entity, IAuditAdd
{ {
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; } public SubjectVisit SubjectVisit { get; set; }
public Guid SubjectVisitId { get; set; } public Guid SubjectVisitId { get; set; }
@ -35,9 +36,10 @@ namespace IRaCIS.Core.Domain.Models
public Guid CreateUserId { get; set; } public Guid CreateUserId { get; set; }
[JsonIgnore]
[ForeignKey("CreateUserId")] [ForeignKey("CreateUserId")]
public User CreateUser { get; set; } public User CreateUser { get; set; }
[JsonIgnore]
[ForeignKey("VisitPlanInfluenceStatId")] [ForeignKey("VisitPlanInfluenceStatId")]
public VisitPlanInfluenceStat VisitPlanInfluenceStat { get; set; } public VisitPlanInfluenceStat VisitPlanInfluenceStat { get; set; }