Sorry if I misexpain in title,
What I want to ask is easy to say via code below;
var userList = context.Where(w=> w.age > 20);
foreach(var item in userList.ToList())
{
...
}
userList.ToList() retrieves 100 rows
I wonder if 'userList.ToList()' fires 100 times, (each iteration and go to database to retrieve records)
or just once and iterate the original collection.
It seems weird but now super important for me since my colleague claim it knock to db 100 times and I believe it does once..