Пример #1
0
        protected virtual BaseCriteria VisitUnary(UnaryCriteria criteria)
        {
            var operand = this.Visit(criteria.Operand);
            if (!Object.ReferenceEquals(operand, criteria.Operand))
            {
                return new UnaryCriteria(criteria.Operator, operand);
            }

            return criteria;
        }
Пример #2
0
        /// <summary>
        /// Visits the unary criteria. Unary criteria is one with
        /// one operand and one operator.
        /// </summary>
        /// <param name="criteria">The unary criteria.</param>
        /// <returns></returns>
        protected virtual BaseCriteria VisitUnary(UnaryCriteria criteria)
        {
            var operand = Visit(criteria.Operand);

            if (!Object.ReferenceEquals(operand, criteria.Operand))
            {
                return(new UnaryCriteria(criteria.Operator, operand));
            }

            return(criteria);
        }