请帮助我将以下 SQL 转换为 LINQ:
SELECT Row_Number() OVER (ORDER BY NewHireID) AS RowNo,
NewHireID,
SUM(HoursWorked) WeeklyWorkedHours,
CONVERT(varchar, DATEPART(WK, (WORKDATE))) WeekNo
FROM dbo.TBLTIMESHEET
GROUP BY NewHireID, DATEPART(WK, (WORKDATE))
使用 LINQPAD 但收到以下错误 SQL 语法错误:函数 DATEPART 的参数 WK 无效。
提前致谢。