コード例 #1
0
 public IList <Study> LoadRelatedStudies()
 {
     using (var context = new ServerExecutionContext())
     {
         IStudyEntityBroker  broker   = context.ReadContext.GetBroker <IStudyEntityBroker>();
         StudySelectCriteria criteria = new StudySelectCriteria();
         criteria.PatientKey.EqualTo(Key);
         return(broker.Find(criteria));
     }
 }
コード例 #2
0
ファイル: Patient.cs プロジェクト: technocratz/ClearCanvas
 public IList <Study> LoadRelatedStudies()
 {
     using (IReadContext read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         IStudyEntityBroker  broker   = read.GetBroker <IStudyEntityBroker>();
         StudySelectCriteria criteria = new StudySelectCriteria();
         criteria.PatientKey.EqualTo(Key);
         return(broker.Find(criteria));
     }
 }