Beispiel #1
0
        // no statement building
#else
        //
        // SQL Statement building
        //

        #region public override bool BuildStatement(DBStatementBuilder builder)

        public override bool BuildStatement(DBStatementBuilder builder)
        {
            builder.BeginAggregateFunction(this.Function, this.Function.ToString());
            builder.BeginFunctionParameterList();

            if (this.InnerReference != null)
            {
                this.InnerReference.BuildStatement(builder);
            }

            builder.EndFunctionParameterList();
            builder.EndAggregateFunction(this.Function, this.Function.ToString());

            if (string.IsNullOrEmpty(this.Alias) == false)
            {
                builder.WriteAlias(this.Alias);
            }
            return(true);
        }