예제 #1
0
        //--------------------------------------------------------------------------------


        public virtual int CountReply(int topicId)
        {
            return(ForumPost.find("TopicId=" + topicId + " and Status<>" + TopicStatus.Delete).count() - 1);
        }
예제 #2
0
 public virtual List <ForumPost> GetRecentByApp(int appId, int count)
 {
     return(ForumPost.find("AppId=" + appId + " and " + getNonDelCondition()).list(count));
 }
예제 #3
0
 public virtual List <ForumPost> GetRecentByApp(int appId, int count)
 {
     return(ForumPost.find("AppId=" + appId + " and " + TopicStatus.GetShowCondition()).list(count));
 }