Ejemplo n.º 1
0
        /// <summary>
        /// Добавить выражение для отбора
        /// </summary>
        /// <param name="expression"></param>
        /// <returns></returns>
        public Filter Add(SubqueryExpression expression)
        {
            int hashCode = expression.GetHashCode();

            if (!Subqueries.ContainsKey(hashCode))
            {
                _subqueries.Add(hashCode, expression);
            }

            return(((SubqueryExpression)_subqueries[hashCode]).CriteriaImpl);
        }