Example #1
0
        public String ToSqlString(Junction junction)
        {
            if (0 == junction.Expressions.Count)
                return "1=1";

            StringBuilder sb = StringHelper.CreateBuilder().Append("(");

            StringHelper.AppendItemsWithSeperator(junction.Expressions, ' ' + junction.Op + ' ',
                delegate(IExpression exp)
                {
                    sb.Append(exp.Render(this));
                }, sb);

            return sb.Append(')').ToString();
        }