2011年7月25日
摘要: 做排序,项目中发现好多地方要用到排序,什么正序、倒序、写的很累,不过为发现排序写一个综合方法很不错的1、得到某某的数据 IEnumerable<xxxx> = .....................;2、得到要排序的参数orderby orderby参数格式: orderby = "CreateTime asc,Title desc";-------------------------------------------------------------------------- OrderUsingSortExpression(res.AsQueryab 阅读全文
posted @ 2011-07-25 18:00 水星曙光 阅读(5482) 评论(1) 推荐(1) 编辑