Exemplo n.º 1
0
        // no statement building
#else
        #region public override bool BuildStatement(DBStatementBuilder builder)

        /// <summary>
        /// Generates the SQL statement for this DBQueryHint
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public override bool BuildStatement(DBStatementBuilder builder, bool isInorNot = false)
        {
            builder.BeginAQueryHint(this.Option);
            if (null != this.Clause)
            {
                builder.BeginHintParameterList();
                Clause.BuildStatement(builder);
                builder.EndHintParameterList();
            }
            builder.EndAQueryHint(this.Option);
            return(true);
        }
Exemplo n.º 2
0
        // no statement building
#else
        public override bool BuildStatement(DBStatementBuilder builder)
        {
            builder.BeginTableHint(this.Option);
            if (this.Parameters != null && this.Parameters.Length > 0)
            {
                string[] all = this.Parameters;
                builder.BeginHintParameterList();
                for (int i = 0; i < all.Length; i++)
                {
                    builder.WriteHintParameter(i, all[i]);
                }
                builder.EndHintParameterList();
            }
            builder.EndTableHint(this.Option);
            return(true);
        }