private string GetWhereInfo(UnionSubQuery unionSubQuery) { StringBuilder stringBuilder = new StringBuilder(); SQLSubQuerySelectExpression unionSubQueryAst = unionSubQuery.ResultQueryAST; try { if (unionSubQueryAst.Where != null) { DumpWhereInfo(stringBuilder, unionSubQueryAst.Where); } } finally { unionSubQueryAst.Dispose(); } return(stringBuilder.ToString()); }
private void UpdateWhereInfo() { UnionSubQuery unionSubQuery = Builder.ActiveUnionSubQuery; StringBuilder stringBuilder = new StringBuilder(); SQLSubQuerySelectExpression unionSubQueryAst = unionSubQuery.ResultQueryAST; try { if (unionSubQueryAst.Where != null) { WhereInfo.DumpWhereInfo(stringBuilder, unionSubQueryAst.Where); } } finally { unionSubQueryAst.Dispose(); } tbWhere.Text = stringBuilder.ToString(); }