我不知道linq,但我需要为此SQL查询创建一个linq查询
SELECT a.[ProjectId],
a.[CompanyId],
a.[Status],
ISNULL((SELECT TOP 1 1
FROM [dbo].[Project] b
WHERE b.[MasterProjectId] = a.[MasterProjectId]
AND b.[Level] > 1), 0) [HasSubProjects]
FROM [dbo].[Project] a
1条答案
按热度按时间ao218c7q1#