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#.
ON
How do you represent the following in LINQ to SQL:
select DealerContact.* from Dealer inner join DealerContact on Dealer.DealerID = DealerContact.DealerID
Use Linq Join operator:
var q = from d in Dealer join dc in DealerConact on d.DealerID equals dc.DealerID select dc;