If we sandwich a semiconducting material between two metal electrodes, on shining light, electron jumps from valence band to conduction band generating electron - hole pair in the semiconductor. Electron in conduction band of semiconductor can be transferred to the metal (provided work function of the metal is more than the conduction band edge of semiconductor) and the hole can be transported to other opposite electrode via hole transport medium. Some kind of solar cells like PbS based QD solar cells or other possible cases, the holes are transported to metal electrode without hole transport medium.
I request can somebody explain how a hole can pass through the metal- if it is not, can you explain how to understand the hole transport through the different medium (I can imagine electron motion easily rather than hole) in solar cells and the necessary condition for the band alignment, starting from photo electrode material to counter electrode in DSSC or QDSC)?