A handy reference for various LINQ functions can be found on the MSDN samples page.
Var returnall = from p in db. Orders orderby p. ShipName select p.
ShipName; A handy reference for various LINQ functions can be found on the MSDN samples page.
– James May 15 at 16:02 @James: no, it would order it by the ShipName, which I assume is a string. You can also order by any other field available in db.Orders. FYI, in case you want a descending order, you can also put orderby p.
ShipName descending – SirViver May 15 at 16:03 Addition to your answer: orderby shipname ascending and orderby shipname decending – James May 15 at 16:05.
You can use OrderBy to order the single property for multiple property use ThenBy also DataClasses1DataContext db = new DataClasses1DataContext(); var returnall = db. OrderBy(r=> r. OrderDelivaryDate).
ThenBy(r => r. OrderName); This query will sort first by OrderDelivaryDate then by OrderName Here is some simple linq queries http://msdn.microsoft.com/en-us/vcsharp/aa336756#thenBySimple.
Var ret = db.Orders. OrderBy( x => x. ShipName ).
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.