SQL TO LINQ
Hi
SELECT *
FROM Purchase
WHERE Price > 10
ORDER BY
CASE WHEN Price > 1500 THEN Price END DESC,
CASE WHEN Price <= 1500 THEN Price END ASC
How to express this SQL into
IQueryable orderedQuery = .... ?
Any help would be appreciate it. Thanks!
Reiner
SELECT *
FROM Purchase
WHERE Price > 10
ORDER BY
CASE WHEN Price > 1500 THEN Price END DESC,
CASE WHEN Price <= 1500 THEN Price END ASC
How to express this SQL into
IQueryable orderedQuery = .... ?
Any help would be appreciate it. Thanks!
Reiner
Comments