In mysql I can do this:
SELECT id, name FROM pages WHERE id IN (5, 10, 20) ORDER BY FIELD(id, 5, 10, 20);
What is the corresponding syntax using LINQ on an IQueryable?
Basically I’m searching with lucene.net and I want to use the returned IDs to grab the real database entries, in the specific order of relevance.
1 Answer