示例#1
0
 /// <summary>
 /// 获取指定tid的帖子总数
 /// </summary>
 /// <param name="tid">帖子的tid</param>
 /// <returns>指定tid的帖子总数</returns>
 public static int GetPostCount(int tid)
 {
     return(DatabaseProvider.GetInstance().GetPostCountByTid(tid, PostTables.GetPostTableName(tid)));
 }
示例#2
0
 /// <summary>
 /// 获得最后回复的帖子列表,支持分页
 /// </summary>
 /// <param name="postpramsInfo">参数对象</param>
 /// <returns></returns>
 public static DataTable GetPagedLastPostDataTable(PostpramsInfo postpramsInfo)
 {
     return(DatabaseProvider.GetInstance().GetPagedLastPostList(postpramsInfo, PostTables.GetPostTableName(postpramsInfo.Tid)));
 }