SELECT computer.*,
computerdetail.manufacture,
computerdetail.model,
computerdetail.noofshares,
computerdetail.phymem,
computerdetail.processor,
computerdetail.numloproc,
computerdetail.numphproc
FROM computer
INNER JOIN computerdetail ON computer.id = computerdetail.computerid
答案 0 :(得分:1)
您没有提供任何您想要的详细信息。因此,假设您只想使用lambada expression
将查询转换为Join
,转换可以如下所示,
var result = computer.Join(computerDetail,comp=>comp.id,compdet=>compdet.computerid,
(comp,compdet)=> new
{
Manufacturer = compdet.manufacture,
Model = compdet.model,
... //more properties to select
}).ToList();
这将返回anonymous
个对象的列表。