Suppose I have this :
IEnumerable<MyObject> StructsTemp;
I wrote n queries on StructsTemp, so that it populates from the DB, and so on.
Later, I execute them calling .ToList()
:
IList<MyObject> StructsFinal = StructsTemp.ToList();
... some queries on StructsFinal ....
StructsTemp = StructsFinal;
What about if later I do this?
StructsTemp.Count()
Will it re-execute the n queries on StructsTemp? Will this re-execute StructsTemp.ToList()? Will this re-execute all queries on StructsFinal?