示例#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);