public virtual void Delete()
 {
     if (this.BaseDataAccessAvailable())
     {
         Data.SingleTable.Dto.Folks dto       = _baseBusiness.FillDtoWithThis(this);
         Data.SingleTable.Dto.Folks returnDto = _baseDataAccess.Delete(dto);
         this.FillThisWithDto(returnDto);
     }
     else
     {
         throw new System.ApplicationException(FILL_DB_SETTINGS_EXCEPTION);
     }
 }
 public virtual void GetByPrimaryKey()
 {
     if (this.BaseDataAccessAvailable())
     {
         Data.SingleTable.Dto.Folks        dto       = this;
         List <Data.SingleTable.Dto.Folks> returnDto = _baseDataAccess.Get(dto, CommonLibrary.Enumerations.GetPermutations.ByPrimaryKey);
         if ((returnDto.Count > 0))
         {
             this.FillThisWithDto(returnDto[0]);
         }
         else
         {
             throw new System.ApplicationException(PRIMARY_KEY_NOT_FOUND_EXCEPTION_VAR_NAME);
         }
     }
     else
     {
         throw new System.ApplicationException(FILL_DB_SETTINGS_EXCEPTION);
     }
 }
 private void FillThisWithDto(Data.SingleTable.Dto.Folks filledDto)
 {
     _baseBusiness.FillThisWithDto(filledDto, this);
 }