0
如何使用Linq-SQL或實體框架編寫以下SQL查詢?在Linq-SQL或實體框架中查找行號
WITH tmpTable AS
(
SELECT p.Id, ROW_NUMBER() OVER (ORDER BY p.CreatedDate DESC) AS 'RowNumber'
FROM MyTable p
)
SELECT RowNumber FROM tmpTable WHERE Id=12345;
好的非常感謝讚賞... – Morgs