/// <summary> Retrieves the related entity of type 'CreditCardEntity', 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 'CreditCardEntity' which is related to this entity.</returns>
 public virtual CreditCardEntity GetSingleCreditCard(bool forceFetch)
 {
     if ((!_alreadyFetchedCreditCard || forceFetch || _alwaysFetchCreditCard) && !this.IsSerializing && !this.IsDeserializing && !this.InDesignMode)
     {
         bool             performLazyLoading = this.CheckIfLazyLoadingShouldOccur(Relations.CreditCardEntityUsingCreditCardId);
         CreditCardEntity newEntity          = new CreditCardEntity();
         bool             fetchResult        = false;
         if (performLazyLoading)
         {
             AddToTransactionIfNecessary(newEntity);
             fetchResult = newEntity.FetchUsingPK(this.CreditCardId);
         }
         if (fetchResult)
         {
             newEntity = (CreditCardEntity)GetFromActiveContext(newEntity);
         }
         else
         {
             if (!_creditCardReturnsNewIfNotFound)
             {
                 RemoveFromTransactionIfNecessary(newEntity);
                 newEntity = null;
             }
         }
         this.CreditCard           = newEntity;
         _alreadyFetchedCreditCard = fetchResult;
     }
     return(_creditCard);
 }