public override FolderVO ReadRecord(SqlDataReader reader) { FolderVO result = new FolderVO(); fDao = new FolderDAO(); result.Id = reader.GetInt32(reader.GetOrdinal(idColumnName)); result.Name = reader[folderName].ToString(); result.IsPermanent = reader.GetBoolean(reader.GetOrdinal(folderIsPermanent)); int?baseFolderid = ReadIntOrNull(reader, baseFolderId); if (baseFolderid != null) { result.BaseFolder = fDao.GetItem(baseFolderid.Value); } else { result.BaseFolder = null; } fDao.CloseConnection(); return(result); }