Пример #1
0
        protected override void VisitWhereCategory(WhereCategoryExpression expression)
        {
            if (query is TranslatedTextContentQuery)
            {
                TranslatedTextContentQuery textContentQuery = (TranslatedTextContentQuery)query;

                var categoryQuery = (new TextContentQueryTranslator()).Translate(expression.CategoryQuery);

                textContentQuery.CategroyQueries = textContentQuery.CategroyQueries.Concat(new[] { (TranslatedTextContentQuery)categoryQuery });
            }
        }
Пример #2
0
 protected override void VisitWhereCategory(WhereCategoryExpression expression)
 {
     CategoryQueries = CategoryQueries.Concat(new[] { expression.CategoryQuery });
 }
Пример #3
0
 protected abstract void VisitWhereCategory(WhereCategoryExpression expression);