Exemplo n.º 1
0
 /// <summary>
 /// Returns true.
 /// </summary>
 /// <param name="expression">The DbIntersectExpression that is being visited.</param>
 /// <returns></returns>
 public override bool Visit(DbIntersectExpression expression)
 {
     //Walk the structure in case a non-supported construct is encountered
     VisitExpression(expression.Left);
     VisitExpression(expression.Right);
     return(true);
 }
Exemplo n.º 2
0
        public override void Visit(DbIntersectExpression e)
        {
            Check.NotNull(e, "e");

            BeginBinary(e);
            End(e);
        }
Exemplo n.º 3
0
 public override bool Visit(DbIntersectExpression expression)
 {
     Check.NotNull <DbIntersectExpression>(expression, nameof(expression));
     this.VisitExpression(expression.Left);
     this.VisitExpression(expression.Right);
     return(true);
 }
Exemplo n.º 4
0
        public override Expression Visit(DbIntersectExpression expression)
        {
            Expression left  = this.Visit(expression.Left);
            Expression right = this.Visit(expression.Right);

            return(queryMethodExpressionBuilder.Intersect(left, right));
        }
Exemplo n.º 5
0
        public override bool Visit(DbIntersectExpression expression)
        {
            bool flag1 = VisitExpression(expression.Left);
            bool flag2 = VisitExpression(expression.Right);

            return(flag1 || flag2);
        }
Exemplo n.º 6
0
        public override Expression Visit(DbIntersectExpression expression)
        {
            Expression left = this.Visit(expression.Left);
            Expression right = this.Visit(expression.Right);

            return queryMethodExpressionBuilder.Intersect(left, right);
        }
Exemplo n.º 7
0
 public override void Visit(DbIntersectExpression expression)
 {
     Write(expression);
     _depth++;
     Write("Left", expression.Left);
     Write("Right", expression.Right);
     _depth--;
 }
Exemplo n.º 8
0
        /// <summary>
        /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbIntersectExpression"/>.
        /// </summary>
        /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbIntersectExpression"/> that is visited.</param>
        public override void Visit(DbIntersectExpression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            expression.Left.Accept(this);
            expression.Right.Accept(this);
        }
Exemplo n.º 9
0
 /// <summary>
 ///     Visitor pattern method for DbIntersectExpression.
 /// </summary>
 /// <param name="expression"> The DbIntersectExpression that is being visited. </param>
 public abstract void Visit(DbIntersectExpression expression);
Exemplo n.º 10
0
            public override TreeNode Visit(DbIntersectExpression e)
            {
                Check.NotNull(e, "e");

                return(VisitBinary(e));
            }
 public override DbExpression Visit(DbIntersectExpression e)
 {
     Check.NotNull <DbIntersectExpression>(e, nameof(e));
     return(this.TransformIntersectOrExcept(this.VisitExpression(e.Left), this.VisitExpression(e.Right), DbExpressionKind.Intersect));
 }
 public override ViewValidator.DbExpressionEntitySetInfo Visit(
     DbIntersectExpression expression)
 {
     Check.NotNull <DbIntersectExpression>(expression, nameof(expression));
     return((ViewValidator.DbExpressionEntitySetInfo)null);
 }
Exemplo n.º 13
0
 public override ISqlFragment Visit(DbIntersectExpression e)
 {
     throw new NotSupportedException();
 }
Exemplo n.º 14
0
 public override void Visit(DbIntersectExpression e)
 {
     VisitBinary(e);
 }
Exemplo n.º 15
0
 /// <summary>
 ///     Visitor pattern method for <see cref="DbIntersectExpression" />.
 /// </summary>
 /// <param name="expression"> The DbIntersectExpression that is being visited. </param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="expression" />
 ///     is null
 /// </exception>
 public override void Visit(DbIntersectExpression expression)
 {
     VisitBinaryExpression(expression);
 }
Exemplo n.º 16
0
        public override LegacyCommandTrees.DbExpression Visit(DbIntersectExpression expression)
        {
            Debug.Assert(expression != null, "expression != null");

            return(expression.Left.Accept(this).Intersect(expression.Right.Accept(this)));
        }
Exemplo n.º 17
0
        public override TReturn Visit(DbIntersectExpression expression)
        {
            Check.NotNull(expression, "expression");

            throw ConstructNotSupportedException(expression);
        }
Exemplo n.º 18
0
 public override void Visit(DbIntersectExpression expression)
 {
     Contract.Requires(expression != null);
 }
Exemplo n.º 19
0
 public override void Visit(DbIntersectExpression e)
 {
     Check.NotNull <DbIntersectExpression>(e, nameof(e));
     this.VisitBinary((DbBinaryExpression)e);
 }
 public override void Visit(DbIntersectExpression expression) { }
Exemplo n.º 21
0
 public override TReturn Visit(DbIntersectExpression expression)
 {
     Check.NotNull <DbIntersectExpression>(expression, nameof(expression));
     throw this.ConstructNotSupportedException((DbExpression)expression);
 }
Exemplo n.º 22
0
 public override TreeNode Visit(DbIntersectExpression e)
 {
     return(this.VisitBinary(e));
 }
Exemplo n.º 23
0
 public override void Visit(DbIntersectExpression expression)
 {
     this.VisitBinaryExpression((DbBinaryExpression)expression);
 }
Exemplo n.º 24
0
 public override object Visit(DbIntersectExpression expression)
 {
     this.Visit(expression.Left);
     this.Visit(expression.Right);
     return(null);
 }
        /// <summary>
        ///     Visitor pattern method for <see cref="DbIntersectExpression" />.
        /// </summary>
        /// <param name="expression"> The DbIntersectExpression that is being visited. </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="expression" />
        ///     is null
        /// </exception>
        public override void Visit(DbIntersectExpression expression)
        {
            Check.NotNull(expression, "expression");

            VisitBinaryExpression(expression);
        }
        // <summary>
        // <see
        //     cref="TransformIntersectOrExcept(DbExpression, DbExpression, DbExpressionKind, System.Collections.Generic.IList{System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression}, string)" />
        // </summary>
        public override DbExpression Visit(DbIntersectExpression e)
        {
            Check.NotNull(e, "e");

            return(TransformIntersectOrExcept(VisitExpression(e.Left), VisitExpression(e.Right), DbExpressionKind.Intersect));
        }
Exemplo n.º 27
0
 /// <summary>
 ///     Typed visitor pattern method for DbIntersectExpression.
 /// </summary>
 /// <param name="expression"> The DbIntersectExpression that is being visited. </param>
 /// <returns> An instance of TResultType. </returns>
 public abstract TResultType Visit(DbIntersectExpression expression);
Exemplo n.º 28
0
 public override void Visit(DbIntersectExpression expression)
 {
     throw new NotSupportedException("Visit(\"DbIntersectExpression\") is not supported.");
 }
		public override void Visit(DbIntersectExpression expression)
		{
			throw new NotSupportedException("Visit(\"IntersectExpression\") is not supported.");
		}
Exemplo n.º 30
0
 public override VfpExpression Visit(DbIntersectExpression expression)
 {
     return(new VfpIntersectExpression(expression.ResultType,
                                       expression.Left.Accept(this),
                                       expression.Right.Accept(this)));
 }
Exemplo n.º 31
0
        /// <summary>
        /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbIntersectExpression"/>.
        /// </summary>
        /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbIntersectExpression"/> that is visited.</param>
        public override void Visit(DbIntersectExpression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            expression.Left.Accept(this);
            expression.Right.Accept(this);
        }
Exemplo n.º 32
0
 public override TreeNode Visit(DbIntersectExpression e)
 {
     Check.NotNull <DbIntersectExpression>(e, nameof(e));
     return(this.VisitBinary((DbBinaryExpression)e));
 }
Exemplo n.º 33
0
            public override DbExpressionEntitySetInfo Visit(DbIntersectExpression expression)
            {
                Check.NotNull(expression, "expression");

                return(null);
            }
 /// <summary>
 /// <see cref="TransformIntersectOrExcept(DbExpression left, DbExpression right, DbExpressionKind expressionKind, IList<DbPropertyExpression> sortExpressionsOverLeft, string sortExpressionsBindingVariableName)"/>
 /// </summary>
 /// <param name="e"></param>
 /// <returns></returns>
 public override DbExpression Visit(DbIntersectExpression e)
 {
     return TransformIntersectOrExcept(VisitExpression(e.Left), VisitExpression(e.Right), DbExpressionKind.Intersect);
 }
Exemplo n.º 35
0
 /// <summary>
 ///     Visitor pattern method for DbIntersectExpression.
 /// </summary>
 /// <param name="expression"> The DbIntersectExpression that is being visited. </param>
 public abstract void Visit(DbIntersectExpression expression);
Exemplo n.º 36
0
 public override void Visit(DbIntersectExpression e)
 {
     BeginBinary(e);
     End(e);
 }
        public override void Visit(DbIntersectExpression e)
        {
            Check.NotNull(e, "e");

            VisitBinary(e);
        }
Exemplo n.º 38
0
 public override void Visit(DbIntersectExpression expression)
 {
   VisitBinary(expression);
 }
Exemplo n.º 39
0
 public override TReturn Visit(DbIntersectExpression expression)
 {
     throw ConstructNotSupportedException(expression);
 }
Exemplo n.º 40
0
 public override DbExpressionEntitySetInfo Visit(DbIntersectExpression expression)
 {
     return(null);
 }
Exemplo n.º 41
0
 public override void Visit(DbIntersectExpression e)
 {
     BeginBinary(e);
     End(e);
 }