int totalCount = 0;//設置分頁計數初始值
Expression> where = T => T.Title.Contains(strSearch);
IQueryable lt = LoadPageEntities(pagesize, pagenum, out totalCount, where
, false, D => D.ID);
return Json(new
{
sEcho = param.sEcho,
iTotalRecords = totalCount,
iTotalDisplayRecords = totalCount,
aaData = lt
}, JsonRequestBehavior.AllowGet);
LoadPageEntities內部怎麼實現的。調試下。
var query = It.ToList();加上這個看看輸出的List是什麼