public void Build(StringBuilder sb, IDictionary <string, object> queryParamValues)
        {
            var pp = new ClauseAppender(sb, connective);

            foreach (var expression in expressions)
            {
                pp.Append(expression);
            }
            foreach (var sub in subParameters.Where(sub => subParameters.Count > 0))
            {
                pp.Append("(");
                sub.Build(sb, queryParamValues);
                sb.Append(")");
            }

            foreach (var negated in negatedParameters.Where(negated => negatedParameters.Count > 0))
            {
                pp.Append("not (");
                negated.Build(sb, queryParamValues);
                sb.Append(")");
            }

            foreach (var pair in localQueryParamValues)
            {
                queryParamValues.Add(pair);
            }
        }
Ejemplo n.º 2
0
        public void Build(StringBuilder sb, IDictionary<string, object> queryParamValues)
        {
            var pp = new ClauseAppender(sb, connective);
            foreach (var expression in expressions)
            {
                pp.Append(expression);
            }
            foreach (var sub in subParameters.Where(sub => subParameters.Count > 0))
            {
                pp.Append("(");
                sub.Build(sb, queryParamValues);
                sb.Append(")");
            }

            foreach (var negated in negatedParameters.Where(negated => negatedParameters.Count > 0))
            {
                pp.Append("not (");
                negated.Build(sb, queryParamValues);
                sb.Append(")");
            }

            foreach (var pair in localQueryParamValues)
            {
                queryParamValues.Add(pair);
            }
        }