Linq-to-Entities Dynamic sorting
Posted
by verror
on Stack Overflow
See other posts from Stack Overflow
or by verror
Published on 2010-04-30T19:29:47Z
Indexed on
2010/04/30
19:57 UTC
Read the original article
Hit count: 180
This is my query, how can I use string as orderby parameter?
string sortColumn="Title";
var items = (from ltem in ctxModel.Items
where ltem.ItemID == vId
orderby //something here
select ltem).Skip(PageSize * PageIndex).Take(PageSize);
© Stack Overflow or respective owner