OrderBy in LINQ to Entity?

I suspect you want: var clients = from c in context. Clients orderby c. Clientname select new { c, orders = c.orders.

OrderBy(o => o. OrderNumber) }.

Jon you are my hero for today. – NewBie247 May 4 at 10:56.

Tuple x = new Tuple { new Tuple(0, "a"), new Tuple(1, "b"), new Tuple(2, "b"), new Tuple(2, "a"), new Tuple(3, "e") }; var ordered = (from p in x orderby p. Item1 select p). ThenBy(a => a.

Item2); foreach (var item in ordered) { Console. WriteLine(item. Item1.ToString() + " - " + item.

Item2); } Console.ReadLine().

I have this LINQ query and want to add a second orderby. So after this I have an alfabetical list of clients with unorderd ORDERS. I also want to OrderBy on ORDERS.

If possible I want to do all of this in one query.

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