Join Operator in LINQ
Hi all,
I am struggling to convert this query syntax to method syntax.
I would like to know the Method Syntax(Lambda Expression) for the JOIN operator mentioned in the book on Pg 317
var racers = from r in Formula1.GetChampions()
from y in r.Years
where y > 2003
select new
{
Year = y,
Name = r.FirstName
+ " " + r.LastName
};
And also for the whole query where it uses the join.
Thanks a lot.
|