Esempio n. 1
0
        public override QueryExpression VisitCount(CountExpression expression, TArgument argument)
        {
            if (expression != null)
            {
                if (Visit(expression.TargetCollection, argument) is ResourceFieldChainExpression newTargetCollection)
                {
                    var newExpression = new CountExpression(newTargetCollection);
                    return(newExpression.Equals(expression) ? expression : newExpression);
                }
            }

            return(null);
        }
Esempio n. 2
0
 public SortElementExpression(CountExpression count, in bool isAscending)