I've seen multiple from clauses in a LINQ query a few times now, but have not figured out how that corresponds to a TSQL statement.
var r = from p in products
from d in departments
from c in something
select p;
What does that do?
Does that translate to SQL as SELECT * FROM products, departments, something
?
Also, the select
in this case is supposed to always be a SelectMany
. how do I know when a select
actually is a SelectMany
?