Пример #1
0
        /// <summary> Adds Criteria to specified node in SingleQuery </summary>
        /// <param name="node"></param>
        /// <param name="appender"></param>
        /// <param name="name"></param>
        /// <param name="comparator"></param>
        /// <param name="value"></param>
        /// <param name="actions"></param>
        /// <returns></returns>
        public static LinkedListNode <QueryNode> AddCriteria(this LinkedListNode <QueryNode> node,
                                                             CriteriaAppendType appender, string name, CriteriaComparator comparator, object value,
                                                             params Action <QueryNode>[] actions)
        {
            var criteriaSubjectQuery = SingleQuery.CreateQuery.AddProperty(name);

            node.AddCriteria(appender, criteriaSubjectQuery, comparator, value, actions);

            return(node);
        }