private void NavigateBinaryJoins(BinaryJoin item)
 {
     // visit left side first.
     using (var ctx = GetSubCommand())
     {
         IJoinItem leftHand = item.LeftHand;
         leftHand.Accept(ctx.Visitor);
     }
 }
Example #2
0
        private void visitBinaryJoinInner(BinaryJoin item, string joinToken)
        {
            IJoinItem leftHand = item.LeftHand;

            leftHand.Accept(forSubCommand());
            writer.Write(" ");
            writer.Write(joinToken);
            writer.Write(" ");
            IJoinItem rightHand = item.RightHand;

            rightHand.Accept(forSubCommand());
        }
Example #3
0
 public IJoin Append(IJoinItem item)
 {
     this._expressions.Add(item);
     return(this);
 }
Example #4
0
        /// <summary>
        /// Provides information to the given visitor about the current builder.
        /// </summary>
        /// <param name="visitor">The visitor requesting information.</param>
        protected override void OnAccept(BuilderVisitor visitor)
        {
            IJoinItem joinItem = source;

            joinItem.Accept(visitor);
        }