Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }