There are a lot of comparisons to real life throughout books, no matter the genre. It can go from fiction to fantasy, to drama, to science-fiction and so forth. There are a lot of books that include a theme, or main idea that have to do with personal lives and perspectives of lives. There are also text-to-world connections that include the relation a character makes to the real world. Also, it doesn't always have to be the character... it can be the reader that makes a text-to-world connection; they can make a connection to real life from the story that they are reading.
I've learned some things that have to do the with the real world from books that I've read in the past. For example, in a book that I recently finished, "When Zachary Beaver Came to Town", I realized that it was mostly about how Zachary felt about his life so far and how everyone was relating to him, and what everyone thought of him. It was as if you were reading his personal lifetime journal! As a matter of fact- that's another kind of book that includes sort of a secret path into someone's viewpoint at life and the lessons they've learned and continue to learn; books that are shaped into the style of a journal or a diary... That's the resource I've been searching for! Anyways, so like I was saying, there are a lot of books and novels that have a life connection added, and I'm saying that this is a mostly common potential that authors and writers have for there books... most likely because they want people, peers, and readers to make a real connection to whatever the message is they're trying to get out there...