I’ve said that a query is kind of like a delegate, in that it is only executed when it’s triggered. Well, the detail is a little more complicated. (Isn’t it always?) Here are the rules:
Queries that return a singleton value are executed immediately. Examples of this kind of query are those that include the
Queries that return multiple values are executed when they’re iterated over. You’ll usually ...