Exemplo n.º 1
0
 public virtual DataPage <ForumPost> GetByAppAndUser(int appId, int userId, int pageSize)
 {
     if (userId <= 0 || appId <= 0)
     {
         return(DataPage <ForumPost> .GetEmpty());
     }
     return(ForumPost.findPage("AppId=" + appId + " and CreatorId=" + userId + " and " + getNonDelCondition(), pageSize));
 }
Exemplo n.º 2
0
 public virtual DataPage <ForumPost> GetByUser(int userId, int pageSize)
 {
     if (userId <= 0)
     {
         return(DataPage <ForumPost> .GetEmpty());
     }
     return(ForumPost.findPage("CreatorId=" + userId + " and OwnerType='" + typeof(Site).FullName + "' and " + getNonDelCondition(), pageSize));
 }
Exemplo n.º 3
0
 public virtual DataPage <ForumPost> GetByAppAndUser(long appId, long userId, int pageSize)
 {
     if (userId <= 0 || appId <= 0)
     {
         return(DataPage <ForumPost> .GetEmpty());
     }
     return(ForumPost.findPage("AppId=" + appId + " and CreatorId=" + userId + " and " + TopicStatus.GetShowCondition(), pageSize));
 }