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)); }
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)); }
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)); }