The thing with LINQ is that you need to stop thinking in terms of SQL. In SQL, we think like this: -
SELECT Stuff FROM StufF WHERE Stuff ORDER BY Stuff
Here is what your code looks like. However, in LINQ we need to think like this: -
FROM Stuff WHERE Stuff SELECT Stuff ORDER BY Stuff
source share