Ask Your Question
0

What is the meaning of Linq-to-sql orderby and thenby?

asked 2021-11-30 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-09-08 17:00:00 +0000

devzero gravatar image

In Linq-to-SQL, the orderby keyword is used to sort a sequence of elements in ascending or descending order based on one or more criteria. The thenby keyword is used to further sort the elements in ascending or descending order based on another criterion after the initial sorting has been done. Together, orderby and thenby allow you to create a multi-level sort order for your data.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-11-30 11:00:00 +0000

Seen: 10 times

Last updated: Sep 08 '21