------解决方案-------------------- 伪静态?你应该专门写生成url的一系列方法 ------解决方案-------------------- var query = from x in library
group x by x.Date.Month into g
select g.Key; ------解决方案-------------------- magaView.HasMonth = db.Library.GroupBy(a => a.TimeBook.Month).Select(a => a.Key).ToList();