Esempio n. 1
0
 //分页获取当天数据
 public List <Chapter> GetPageChaptersToday(DateTime today, int startIndex, int dataNum)
 {
     return(PageDataHelper.GetDataListByPage <Chapter>("Chapters", "where PostDate>'" + today.ToString() + "'", startIndex, dataNum));
 }
Esempio n. 2
0
 //根据用户id分页获取数据
 public List <Chapter> GetPageChaptersByUId(int userId, int startIndex, int dataNum)
 {
     return(PageDataHelper.GetDataListByPage <Chapter>("Chapters", "where UserId=" + userId, startIndex, dataNum));
 }