I have an sql that looks something like this:
SELECT coluna1, coluna2, coluna3
FROM
(
SELECT coluna1, coluna2, coluna3, ROW_NUMBER() OVER(ORDER BY coluna1, coluna3 desc) as row
FROM tabela1
WHERE coluna4 in ('a', 'b', 'c', 'd')
) A
WHERE
A.ROW BETWEEN 1 AND 5
ORDER BY A.ROW
And I want to pass this statement to C # LINQ expression.
Note: I am using ROW_NUMBER OVER(...)
to be able to identify the line number and be able to do something similar to what you have in ORACLE: SELECT ... FROM ... limit 1,5