I have a simple LINQ lambda join query, but I want to add a third connection with the where clause. How can I do it?
Here is my only connection request:
var myList = Companies .Join( Sectors, comp => comp.Sector_code, sect => sect.Sector_code, (comp, sect) => new {Company = comp, Sector = sect} ) .Select( c => new { c.Company.Equity_cusip, c.Company.Company_name, c.Company.Primary_exchange, c.Company.Sector_code, c.Sector.Description });
I want to add the following SQL command to the LINQ query above and still support the predictions:
SELECT sector_code, industry_code FROM distribution_sector_industry WHERE service = 'numerical'
The third connection will be made using the sector table and Distribution_sector_industry by sector_code.
Thanks in advance.
source share