我编写了一个像
这样的SQL查询DECLARE @OpenDays VARCHAR(15)
SET @OpenDays = (SELECT LTRIM(RTRIM(REPLACE(SUBSTRING(OpenDays,3,LEN(OpenDays)),' - ','')))
FROM
(
SELECT DISTINCT
STUFF((SELECT ' - ' + CONVERT(VARCHAR(30),SSF.OpenDayOfWeek )
FROM @FacilityDayOpen SSF
FOR XML PATH('')
), 1, 2, ' ') as OpenDays
FROM @FacilityDayOpen S
) TS
)
如何将此查询转换为LINQ
答案 0 :(得分:0)