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 }); } }
protected override void VisitWhereCategory(WhereCategoryExpression expression) { CategoryQueries = CategoryQueries.Concat(new[] { expression.CategoryQuery }); }
protected abstract void VisitWhereCategory(WhereCategoryExpression expression);