#2
qq6454851652013-05-22 19:59
|
程序代码:
var query1 =
(from pl in sds.Tables[0].AsEnumerable()
where "12" == pl.Field<string>("SysType")
select pl).Union
(from pl in sds.Tables[0].AsEnumerable()
where "22" == pl.Field<string>("SysType")
select pl).Union
(from pl in sds.Tables[0].AsEnumerable()
where "32" == pl.Field<string>("SysType")
select pl);
怎么将这个结果集按时间降序排序 其中我数据库里的时间属性名为 UplodDate (from pl in sds.Tables[0].AsEnumerable()
where "12" == pl.Field<string>("SysType")
select pl).Union
(from pl in sds.Tables[0].AsEnumerable()
where "22" == pl.Field<string>("SysType")
select pl).Union
(from pl in sds.Tables[0].AsEnumerable()
where "32" == pl.Field<string>("SysType")
select pl);
希望高手帮忙解决下 谢谢···