Using Linq to Sql, how can I get a particular result from a query?

Reverse your sort criteria (add descending ) and use First (or FirstOrDefault as appropriate).

Reverse your sort criteria (add descending) and use First (or FirstOrDefault as appropriate).

Perfect. Thanks Jacob. – Scott Nov 10 '08 at 21:53.

I want to get the last result returned from this query. How do I do this? Last and LastOrDefault aren't supported by Linq to Sql.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions