I am new to Linq for an object and ask a question about the from clause when used in two contexts:
1) to perform cross-connect, such as the request below
var q1 = from person in people from job in jobs select new {person, job}
2) to perform an external connection
var q2 = from person in people join pet in pets on person equals pet.Owner into gj from subpet in gj select new { OwnerName = person.FirstName, PetName = subpet.Name };
Does the second sentence cross-join or is it contextually evaluated? because q1 will produce people.Count * jobss.Count element but q2 will produce only people.Count
source share