Okay, we know how to write a basic LINQ query, and we know when that query gets executed. But what exactly does “executed” mean in this context? What is the query returning? So far we’ve been using
Dim to type our variables implicitly, but you need to know what you’re working with, right? Well, it depends on the query...
If your query includes a method that returns an aggregate value, the return type will be the type returned by that value:
If your query includes a method that returns a single entity, the return type will be that entity:
If your query returns a set of data, it will be in the form of an