/// <summary> /// Loads the related <see cref="Study"/> entity. /// </summary> /// <param name="context"></param> /// <returns></returns> public Study LoadStudy(IPersistenceContext context) { StudyStorage storage = LoadStudyStorage(context); if (_study == null) { lock (_syncLock) { _study = storage.LoadStudy(context); } } return(_study); }
private void LoadEntities() { _storage = StudyStorage.Load(_oldStudyLocation.Key); _study = _storage.LoadStudy(UpdateContext); }