/// <summary> /// 按页取得千里眼信息 /// </summary> /// <param name="startNO">从第几条开始取</param> /// <param name="countNO">一共取几条</param> /// <returns>取得的千里眼信息集合</returns> public List<Clairvoyance> getAllClairvoyanceByPage(int startNO, int countNO) { int skipCount = (startNO - 1) * countNO; try { var results = (from clairvoyance in clairvoyances orderby clairvoyance.ID descending select clairvoyance).Skip(skipCount).Take(countNO); if (results != null && results.Count() > 0) { return results.ToList(); } else return null; } catch (Exception e) { Console.WriteLine("" + e.Message); return null; } } 难道我必须在DAL层来过滤吗,在这怎么过滤呀?
喵喵时光机