/// <summary> Retrieves the related entity of type 'StoreInformationEntity', using a relation of type 'n:1'</summary>
 /// <param name="forceFetch">if true, it will discard any changes currently in the currently loaded related entity and will refetch the entity from the persistent storage</param>
 /// <returns>A fetched entity of type 'StoreInformationEntity' which is related to this entity.</returns>
 public virtual StoreInformationEntity GetSingleStoreInformation(bool forceFetch)
 {
     if ((!_alreadyFetchedStoreInformation || forceFetch || _alwaysFetchStoreInformation) && !this.IsSerializing && !this.IsDeserializing && !this.InDesignMode)
     {
         bool performLazyLoading          = this.CheckIfLazyLoadingShouldOccur(Relations.StoreInformationEntityUsingStoreInformationId);
         StoreInformationEntity newEntity = new StoreInformationEntity();
         bool fetchResult = false;
         if (performLazyLoading)
         {
             AddToTransactionIfNecessary(newEntity);
             fetchResult = newEntity.FetchUsingPK(this.StoreInformationId.GetValueOrDefault());
         }
         if (fetchResult)
         {
             newEntity = (StoreInformationEntity)GetFromActiveContext(newEntity);
         }
         else
         {
             if (!_storeInformationReturnsNewIfNotFound)
             {
                 RemoveFromTransactionIfNecessary(newEntity);
                 newEntity = null;
             }
         }
         this.StoreInformation           = newEntity;
         _alreadyFetchedStoreInformation = fetchResult;
     }
     return(_storeInformation);
 }
 /// <summary> Retrieves the related entity of type 'StoreInformationEntity', using a relation of type 'n:1'</summary>
 /// <param name="forceFetch">if true, it will discard any changes currently in the currently loaded related entity and will refetch the entity from the persistent storage</param>
 /// <returns>A fetched entity of type 'StoreInformationEntity' which is related to this entity.</returns>
 public virtual StoreInformationEntity GetSingleStoreInformation(bool forceFetch)
 {
     if( ( !_alreadyFetchedStoreInformation || forceFetch || _alwaysFetchStoreInformation) && !this.IsSerializing && !this.IsDeserializing  && !this.InDesignMode)
     {
         bool performLazyLoading = this.CheckIfLazyLoadingShouldOccur(Relations.StoreInformationEntityUsingStoreInformationId);
         StoreInformationEntity newEntity = new StoreInformationEntity();
         bool fetchResult = false;
         if(performLazyLoading)
         {
             AddToTransactionIfNecessary(newEntity);
             fetchResult = newEntity.FetchUsingPK(this.StoreInformationId.GetValueOrDefault());
         }
         if(fetchResult)
         {
             newEntity = (StoreInformationEntity)GetFromActiveContext(newEntity);
         }
         else
         {
             if(!_storeInformationReturnsNewIfNotFound)
             {
                 RemoveFromTransactionIfNecessary(newEntity);
                 newEntity = null;
             }
         }
         this.StoreInformation = newEntity;
         _alreadyFetchedStoreInformation = fetchResult;
     }
     return _storeInformation;
 }