[all + determiner + noun]
[determiner + whole + noun]
Whole means ‘complete’, ‘every part of’. All and whole can both be used with singular nouns. They have similar meanings, but the word order is different. Compare:
Julie spent all the summer at home. all my life
Julie spent the whole summer at home. my whole life.
Whole is more common than all with singular countable nouns.
She wasted the whole lesson (More common than … all the lesson )
We usually use all, not whole, with uncountable nouns.
She’s drunk all the milk (NOT the whole milk)
There are some exceptions: for example the whole time; the whole truth.
The whole of or all (of) is used before proper nouns, pronouns and determiners.
The whole of/AII of Venice was under water. (NOT Whole Venice . . .)
I’ve just read the whole of ‘War and Peace’.
(OR . . . all of ‘War and Peace’.)
I didn’t understand the whole of/all of it.