コード例 #1
0
        public static ParaEntityList<Article> getArticles()
        {
            var articleQuery = new ArticleQuery();
            articleQuery.RetrieveAllRecords = true;

            return Service.GetList<Article>(articleQuery);
        }
コード例 #2
0
        public static ParaEntityList<Article> getPublishedArticles()
        {
            var articleQuery = new ArticleQuery();
            articleQuery.AddStaticFieldFilter(ArticleQuery.ArticleStaticFields.Published, ParaEnums.QueryCriteria.Equal, true);
            articleQuery.RetrieveAllRecords = true;

            return Service.GetList<Article>(articleQuery);
        }
コード例 #3
0
        public static ParaEntityList<Article> getArticlesByFolder(long folderID)
        {
            var articleQuery = new ArticleQuery();
            articleQuery.AddStaticFieldFilter(ArticleQuery.ArticleStaticFields.Folders, ParaEnums.QueryCriteria.Equal, folderID.ToString());
            articleQuery.RetrieveAllRecords = true;

            return Service.GetList<Article>(articleQuery);
        }
コード例 #4
0
        public static int getArticleCount()
        {
            var articleQuery = new ArticleQuery();
            articleQuery.RetrieveAllRecords = true;
            articleQuery.TotalOnly = true;

            return Service.GetList<Article>(articleQuery).TotalItems;
        }