I\'m writing a LINQ to SQL statement, and I\'m after the standard syntax for a normal inner join with an ON
clause in C#.
How do you represent the follo
Actually, often it is better not to join, in linq that is. When there are navigation properties a very succinct way to write your linq statement is:
from dealer in db.Dealers
from contact in dealer.DealerContacts
select new { whatever you need from dealer or contact }
It translates to a where clause:
SELECT
FROM Dealer, DealerContact
WHERE Dealer.DealerID = DealerContact.DealerID