コード例 #1
0
        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());
        }
コード例 #2
0
        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();
        }