如何进行转换SQL内部联接查询与entity framework

这里有三个表Service_Orders,Project_Services和Company。 Service Order和CompanyID在3个表之间存在内部联接。 我希望下面的查询使用C#或Vb.net转换为使用Lambda Express的entity framework。

select top 10 * from [Service_Orders] a,[Project_Services] b,[Company] c where a.so_no = b.service_order and c.companyId = b.compid 

Lambda语法:

 var query = db.Service_Orders .Join(db.Project_Services, a => a.so_no equals, b => b.service_order, (a,b) => new { a, b }) .Join(db.Company, x => xbcompid, c => c.companyId, (x,c) => new { xa, xb, c }) .Take(10); 

更可读的查询语法:

 var query = (from a in db.Service_Orders join b in db.Project_Services on a.so_no equals b.service_order join c in db.Company on b.compid equals c.companyId select new { a, b, c }).Take(10);