日期:2014-05-20  浏览次数:20610 次

求解释下这话顺便改成linq
select * from spepbulletin a  join users b on upper(a.userid) =upper(b.account) order by postdate desc
------解决方案--------------------
from a in spepbulletin
join b in users on a.userid.ToUpper() equals b.account.ToUpper()
orderby a.postdate descending
select new { a, b }
------解决方案--------------------
引用:
select * from spepbulletin a  join users b on upper(a.userid) =upper(b.account) order by postdate desc


var q= from a in spepbulletin.AsEnumerable()
       join b in users.AsEnumerable() on a.userid.ToUpper() equals b.account.ToUpper()
       orderby a.postdate descending
       select a;


PS:论坛是讨论技术问题的地方,不是翻译工具哦,建议你先自学一下LINQ的相关基础知识:
101-LINQ-Samples