var orders =
from c in customers
from o in c.Orders
where o.Total < 500.00M
select new { c.CustomerID, o.OrderID, o.Total };
What is the difference between using 2 from clause and making inner join? Which one do I use? And When?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will create the join for you. If you are using LINQ to SQL you can to a
.ToString()onordersand you will see the generated SQL statement. If these were from two different sets it would create a cross join but because it is a child relation it will create the correct inner join for you.