如何修改此查询以便能够选择按标题排序的5条最新记录?
IEnumerable<Story> recentStories =
(from s in stories
orderby s.Date descending
select s).Take(5);
答案 0 :(得分:3)
IEnumerable<Story> recentStories =
(from s in stories
orderby s.Date descending
select s).Take(5).OrderBy(s => s.Title);