private void Build(StringBuilder sb, List <object> args, Sql lhs) { if (!string.IsNullOrEmpty(this._sql)) { if (sb.Length > 0) { sb.Append("\n"); } string str = Sql.ProcessParams(this._sql, this._args, args); if (Sql.Is(lhs, "WHERE ") && Sql.Is(this, "WHERE ")) { str = string.Concat("AND ", str.Substring(6)); } if (Sql.Is(lhs, "ORDER BY ") && Sql.Is(this, "ORDER BY ")) { str = string.Concat(", ", str.Substring(9)); } sb.Append(str); } Sql sql = this._rhs; if (sql == null) { return; } sql.Build(sb, args, this); }