예제 #1
0
 /// <summary>
 /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
 /// methods for this object.
 /// </summary>
 /// <param name="visitor">
 /// The <see cref="ISqlVisitor" /> to visit this object with.
 /// </param>
 public override void Accept(ISqlVisitor visitor)
 {
     base.Accept(visitor);
     Column.Accept(visitor);
     visitor.Visit(SqlBinaryOperator.Equal);
     Value.Accept(visitor);
 }
예제 #2
0
 /// <summary>
 /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
 /// methods for this object.
 /// </summary>
 /// <param name="visitor">
 /// The <see cref="ISqlVisitor" /> to visit this object with.
 /// </param>
 public override void Accept(ISqlVisitor visitor)
 {
     base.Accept(visitor);
     Column.Accept(visitor);
     visitor.Visit(SqlBinaryOperator.Equal);
     Value.Accept(visitor);
 }
예제 #3
0
        /// <summary>
        /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
        /// methods for this object.
        /// </summary>
        /// <param name="source">
        /// The collection of <see cref="SqlSort"/> expressions on which to accept the visitor.
        /// </param>
        /// <param name="visitor">
        /// The <see cref="ISqlVisitor" /> to visit this object with.
        /// </param>
        public static void Accept(this IEnumerable<SqlSort> source, ISqlVisitor visitor)
        {
            if (source == null) throw new ArgumentNullException(nameof(source));
            if (visitor == null) throw new ArgumentNullException(nameof(visitor));

            visitor.Visit(source);
        }
예제 #4
0
 /// <summary>
 /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
 /// methods for this object.
 /// </summary>
 /// <param name="visitor">
 /// The <see cref="ISqlVisitor" /> to visit this object with.
 /// </param>
 public virtual void Accept(ISqlVisitor visitor)
 {
     if (visitor == null)
     {
         throw new ArgumentNullException(nameof(visitor));
     }
     visitor.Visit(this);
 }
예제 #5
0
        /// <summary>
        /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
        /// methods for this object.
        /// </summary>
        /// <param name="sortOrder">
        /// The <see cref="SqlSortOrder"/> on which to accept the visitor.
        /// </param>
        /// <param name="visitor">
        /// The <see cref="ISqlVisitor" /> to visit this object with.
        /// </param>
        public static void Accept(this SqlSortOrder sortOrder, ISqlVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.Visit(sortOrder);
        }
예제 #6
0
        /// <summary>
        /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
        /// methods for this object.
        /// </summary>
        /// <param name="operator">
        /// The <see cref="SqlBinaryOperator"/> on which to accept the visitor.
        /// </param>
        /// <param name="visitor">
        /// The <see cref="ISqlVisitor" /> to visit this object with.
        /// </param>
        public static void Accept(this SqlBinaryOperator @operator, ISqlVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.Visit(@operator);
        }
예제 #7
0
        /// <summary>
        /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
        /// methods for this object.
        /// </summary>
        /// <param name="source">
        /// The collection of <see cref="SqlSort"/> expressions on which to accept the visitor.
        /// </param>
        /// <param name="visitor">
        /// The <see cref="ISqlVisitor" /> to visit this object with.
        /// </param>
        public static void Accept(this IEnumerable <SqlSort> source, ISqlVisitor visitor)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.Visit(source);
        }
예제 #8
0
 public override void AcceptVisitor(ISqlVisitor visitor)
 {
     visitor.Visit(this);
 }
 /// <summary>
 /// Accepts the specified visitor.
 /// </summary>
 /// <typeparam name="T">Return type.</typeparam>
 /// <param name="visitor">The visitor.</param>
 /// <returns>Returns processed value from expression.</returns>
 public override T Accept <T>(ISqlVisitor <T> visitor)
 {
     return(visitor.Visit(this));
 }
예제 #10
0
 /// <summary>
 /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
 /// methods for this object.
 /// </summary>
 /// <param name="visitor">
 /// The <see cref="ISqlVisitor" /> to visit this object with.
 /// </param>
 public virtual void Accept(ISqlVisitor visitor)
 {
     if (visitor == null) throw new ArgumentNullException(nameof(visitor));
     visitor.Visit(this);
 }
예제 #11
0
        /// <summary>
        /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
        /// methods for this object.
        /// </summary>
        /// <param name="sortOrder">
        /// The <see cref="SqlSortOrder"/> on which to accept the visitor.
        /// </param>
        /// <param name="visitor">
        /// The <see cref="ISqlVisitor" /> to visit this object with.
        /// </param>
        public static void Accept(this SqlSortOrder sortOrder, ISqlVisitor visitor)
        {
            if (visitor == null) throw new ArgumentNullException(nameof(visitor));

            visitor.Visit(sortOrder);
        }
예제 #12
0
        /// <summary>
        /// Accepts the specified <paramref name="visitor"/> and dispatches calls to the specific visitor
        /// methods for this object.
        /// </summary>
        /// <param name="operator">
        /// The <see cref="SqlBinaryOperator"/> on which to accept the visitor.
        /// </param>
        /// <param name="visitor">
        /// The <see cref="ISqlVisitor" /> to visit this object with.
        /// </param>
        public static void Accept(this SqlBinaryOperator @operator, ISqlVisitor visitor)
        {
            if (visitor == null) throw new ArgumentNullException(nameof(visitor));

            visitor.Visit(@operator);
        }