Quantcast
Viewing all articles
Browse latest Browse all 9760

Re: AM I AN IDIOT? WHAT DOES GetLast() do???

Here is the e.g.

 

var sorted_result = query_result.OrderBy(n=>n.ID);

 

the above OrderBy() function sorts the query result in ascending order based on the column ID.

 

you can define sorting criteria using any column with the help of function literal n=>n.<column>

 

 

Note: instead of n, you can use any character for function literal.



Viewing all articles
Browse latest Browse all 9760

Trending Articles