Ejemplo n.º 1
0
 public static IDictionary <Guid, int> FetchForumThreadPostCounts(this OrganizationServiceContext serviceContext, IEnumerable <Guid> forumThreadIds)
 {
     return(serviceContext.FetchCounts(
                "adx_communityforumpost",
                "adx_communityforumpostid",
                "adx_communityforumthread",
                "adx_communityforumthreadid",
                "adx_forumthreadid",
                forumThreadIds));
 }
Ejemplo n.º 2
0
 public static IDictionary <Guid, int> FetchBlogPostCommentCounts(this OrganizationServiceContext serviceContext, IEnumerable <Guid> postIds)
 {
     if (FeatureCheckHelper.IsFeatureEnabled(FeatureNames.Feedback))
     {
         return(serviceContext.FetchCounts(
                    "feedback",
                    "feedbackid",
                    "adx_blogpost",
                    "adx_blogpostid",
                    "regardingobjectid",
                    postIds,
                    addCondition => addCondition("adx_approved", "eq", "true")));
     }
     else
     {
         return(new Dictionary <Guid, int>());
     }
 }