I current have a LINQ expression, although I would like to know it its possible to use the “orderby” directive in conjunction with a specific field in this case “CDGenre” e.g.
DataClassesDataContext db = new DataClassesDataContext (); {
from p in db.ArtistName
**orderby p.CDGenre** accending;
select p.CDTitle;
}
Will this statement achieve this?
The syntax looks right to me, there’s also the option of:
edit: you could select into an object if you want multiple things in the select statement: