Пример #1
0
        /// <summary>
        ///     Convenience method to visit the specified <see cref="DbBinaryExpression" />.
        /// </summary>
        /// <param name="expression"> The DbBinaryExpression to visit. </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="expression" />
        ///     is null
        /// </exception>
        protected virtual void VisitBinaryExpression(DbBinaryExpression expression)
        {
            Check.NotNull(expression, "expression");

            VisitExpression(expression.Left);
            VisitExpression(expression.Right);
        }
        /// <summary>
        /// Convenience method to visit the specified <see cref="DbBinaryExpression"/>.
        /// </summary>
        /// <param name="expression">The DbBinaryExpression to visit.</param>
        /// <exception cref="ArgumentNullException"><paramref name="expression"/> is null</exception>
        protected virtual void VisitBinaryExpression(DbBinaryExpression expression)
        {
            ADP1.CheckArgumentNull(expression, "expression");

            VisitExpression(expression.Left);
            VisitExpression(expression.Right);
        }
Пример #3
0
 private void VisitBinary(DbBinaryExpression expression, string separator)
 {
     _commandText.Append("(");
     expression.Left.Accept(this);
     _commandText.Append(separator);
     expression.Right.Accept(this);
     _commandText.Append(")");
 }
Пример #4
0
 protected virtual void VisitBinary(DbBinaryExpression expression)
 {
   if (expression == null) throw new ArgumentException("expression");
   this.VisitExpression(expression.Left);
   this.VisitExpression(expression.Right);
 }