首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

How can I implement the dynamic orderby in linq to entity,该怎么解决

2012-03-15 
How can I implement the dynamic orderby in linq to entityJust my qestion[解决办法]Hi lnq,I think yo

How can I implement the dynamic orderby in linq to entity
Just my qestion

[解决办法]
Hi lnq,

I think you can try this:
http://www.cnblogs.com/Magicworks/archive/2011/04/10/2011725.html

[解决办法]

探讨
what is "dynamic orderby" you said?

a simple way is extract a Predicate<Entity> param:


C# code
IList<T> OrderBy(IList<T> set, Predicate<T> orderby)
{
return set.OrderBy(x => orderby(x))……

热点排行