Пример #1
0
        // no statement building
#else
        //
        // SQL Statement build methods
        //

        #region public override bool BuildStatement(DBStatementBuilder builder)

        public override bool BuildStatement(DBStatementBuilder builder)
        {
            if (null == this.JoinedTo)
            {
                throw new NullReferenceException(Errors.NoJoinRightReference);
            }
            if (null == this.Comparison)
            {
                throw new NullReferenceException(Errors.NoJoinLimits);
            }

            builder.BeginJoin(this.JoinType);
            this.JoinedTo.BuildStatement(builder);
            builder.BeginJoinOnList();
            this.Comparison.BuildStatement(builder);
            builder.EndJoinOnList();
            builder.EndJoin(this.JoinType);
            return(true);
        }