Relative Content

Tag Archive for c#linq

C# LINQ Query – Get the Top 1 Record From Another Table

I am new to LINQ query and I am struggling to figure out how to get the LINQ query working that produces the same result as this SQL query below. Note that ProductCode table can have duplicated records that is why I use “Top 1”.