Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
		private void LoadEntities()
		{
			_storage = StudyStorage.Load(_oldStudyLocation.Key);
			_study = _storage.LoadStudy(UpdateContext);
		}