几天来,我一直在尝试在 LINQ 中“翻译”这个查询,但到目前为止没有成功。你们能帮帮我吗?我也很感激一些解释,以从中学到一些实际的东西。
这是 T-SQL 查询:
SELECT R.ResourceID, R.DefaultValue
FROM Resources as R
JOIN
(SELECT [t0].[NameResourceID] AS [ResourceID]
FROM [dbo].[Sectors] AS [t0]
LEFT OUTER JOIN [dbo].[LocalizedResources] AS [t1] ON [t0].[NameResourceID] = [t1].[ResourceID] and [t1].[LanguageID] = 2
WHERE t1.Value IS NULL) AS subQ
ON R.ResourceID = subQ.ResourceID
谢谢