我需要帮助才能在我的 C# 代码中将 SQL 查询转换为实体查询。该查询将 4 个不同的表组合在一起,如下所示:
SELECT a.email,
a.status,
a.createdat,
b.unitprice,
c.name,
d.name,
e.name
FROM Orders a,
Orderdetails b,
ServiceOptions c,
services d,
merchants e
WHERE a.id=b.orderid AND c.id=b.serviceoptionid
AND c.serviceid=d.id AND d.merchantid=e.id