I have defined two entities that map to two tables in my database. In SQL I would do a join like this:
select *
from tableA a
left outer join tableB b on b.ID = a.ID
where some condition
How might I do this with a LINQ query?
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.
See: How to: Perform Left Outer Joins (C# Programming Guide) on MSDN.
For example: