//jhzou120230902 ****惰性加载查询,可以使用join或left了
var ilist = this.BaseRepository().FindListLinq(expression);
pagination.TotalCount = ilist.Count();
var pageData = (
from i in ilist.OrderByDescending(s => s.BaseCreateTime).Skip(pagination.SkipCount).Take(pagination.PageSize)
select i
).ToList();
//jhzou120230902 ****惰性加载查询,可以使用join或left了 var ilist = this.BaseRepository().FindListLinq(expression); pagination.TotalCount = ilist.Count(); var pageData = ( from i in ilist.OrderByDescending(s => s.BaseCreateTime).Skip(pagination.SkipCount).Take(pagination.PageSize) select i ).ToList();