日期:2014-05-17 浏览次数:20473 次
Articles = db.Article.Where(a => a.CategoryID == categoryId ).
OrderByDescending(a => a.PubDate).ToPagedList(pageIndex, pageSize)
var model=db.Article.Includes("cate").where(a => a.CategoryID == categoryId ).ToList();
cate为子类