コード例 #1
0
        /// <summary>
        /// 解析 select 语句
        /// </summary>
        /// <param name="selectClause"></param>
        /// <param name="queryModel"></param>
        public override void VisitSelectClause(SelectClause selectClause, QueryModel queryModel)
        {
            OracleSelectClauseVisitor visitor = new OracleSelectClauseVisitor(this.parameters);

            string selectParts = visitor.Translate(selectClause.Selector);

            queryPartsAggregator.SelectPart = selectParts;

            base.VisitSelectClause(selectClause, queryModel);
        }
コード例 #2
0
        /// <summary>
        /// 解析 select 语句
        /// </summary>
        /// <param name="selectClause"></param>
        /// <param name="queryModel"></param>
        public override void VisitSelectClause(SelectClause selectClause, QueryModel queryModel)
        {
            OracleSelectPartsCommandBuilder selectBuilder = new OracleSelectPartsCommandBuilder();

            OracleSelectClauseVisitor visitor = new OracleSelectClauseVisitor();

            visitor.Translate(selectClause.Selector, selectBuilder);

            commandBuilder.SelectPart = selectBuilder.ToString();

            base.VisitSelectClause(selectClause, queryModel);
        }