/// <summary> Retrieves the related entity of type 'RoleEntity', 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 'RoleEntity' which is related to this entity.</returns>
 public virtual RoleEntity GetSingleRole(bool forceFetch)
 {
     if( ( !_alreadyFetchedRole || forceFetch || _alwaysFetchRole) && !this.IsSerializing && !this.IsDeserializing  && !this.InDesignMode)
     {
         bool performLazyLoading = this.CheckIfLazyLoadingShouldOccur(Relations.RoleEntityUsingRoleId);
         RoleEntity newEntity = new RoleEntity();
         bool fetchResult = false;
         if(performLazyLoading)
         {
             AddToTransactionIfNecessary(newEntity);
             fetchResult = newEntity.FetchUsingPK(this.RoleId.GetValueOrDefault());
         }
         if(fetchResult)
         {
             newEntity = (RoleEntity)GetFromActiveContext(newEntity);
         }
         else
         {
             if(!_roleReturnsNewIfNotFound)
             {
                 RemoveFromTransactionIfNecessary(newEntity);
                 newEntity = null;
             }
         }
         this.Role = newEntity;
         _alreadyFetchedRole = fetchResult;
     }
     return _role;
 }