#20728: Optimizing query.

This commit is contained in:
Sipke Schoorstra
2014-12-04 21:16:32 -08:00
parent c226483d11
commit ea68f1f9b3

View File

@@ -181,7 +181,7 @@ namespace Orchard.Comments {
);
// populate the CommentsPartRecord.CommentsCount property
foreach (var commentsPart in _contentManager.Query<CommentsPart>().List()) {
foreach (var commentsPart in _contentManager.Query<CommentsPart, CommentsPartRecord>().List()) {
_commentService.ProcessCommentsCount(commentsPart.Id);
}