I have the following scenario (combined in one line)
var User = db.Entry(obj).Collection(collection).Query().Where(/*some condition*/).FirstOrDefault(/*some condition*/);
lets assume that User Object has Posts as a virtual attribute (to eagerly load them) the result of the previous line loads only ONE post for that user while if i did one of the following :
var Users = db.Entry(obj).Collection(collection).Query().ToList().Where(/*some condition*/).FirstOrDefault(/*some condition*/);
//added ToList() after the Query method
//OR
db.Users.Where(/*full condition*/).FirstOrDefault()
//OR
db.Users.FirstOrDefault(/*full condition*/)
all of these loads all the posts for the user, what i'm missing in the first query, and how can i eagerly load all the posts through it?