Does lazy loading load the entire collection even if you only iterate over the first item in the collection? Or does it only load the items that are iterated over within the collection?
…or do I have no idea what I’m talking about?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Lazy loading loads the whole collection when you start to iterate over the collection. Example: Suppose
user1 has the role “Role1”, “Role2”, “Role3” (user.Rolesisvirtual):Although you never access
Role2andRole3they have been loaded nonetheless.