直接上代码:
db.GetList<Draw2D>(x => x.ProductId == id && x.EditionNo == no) .OrderBy(x => x.CreateTime.Desc()) .ToList();
这个无法排序!!!
return db.GetList<Draw2D>(x => x.ProductId == id && x.EditionNo == no) .OrderByDescending(x => x.CreateTime) .ToList();
这个可以!