public override Expression Visit(DbExceptExpression expression)
        {
            Type resultType = this.edmTypeConverter.Convert(expression.ResultType);

            Expression left = this.Visit(expression.Left);
            Expression right = this.Visit(expression.Right);

            // Entity Framework does not ensure that left, right and result items have the same
            // type
            var resultElemType = TypeHelper.GetElementType(resultType);

            this.UnifyCollections(resultElemType, ref left, ref right);

            return queryMethodExpressionBuilder.Except(left, right);
        }
Beispiel #2
0
        public override void Visit(DbExceptExpression e)
        {
            Check.NotNull(e, "e");

            VisitBinary(e);
        }
Beispiel #3
0
            public override TreeNode Visit(DbExceptExpression e)
            {
                Check.NotNull(e, "e");

                return(VisitBinary(e));
            }
 /// <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(DbExceptExpression e)
 {
     return TransformIntersectOrExcept(VisitExpression(e.Left), VisitExpression(e.Right), DbExpressionKind.Except);
 }
 /// <summary>
 ///     Visitor pattern method for DbExceptExpression.
 /// </summary>
 /// <param name="expression"> The DbExceptExpression that is being visited. </param>
 public abstract void Visit(DbExceptExpression expression);
        public override void Visit(DbExceptExpression e)
        {
            Check.NotNull(e, "e");

            VisitBinary(e);
        }
 public override void Visit(DbExceptExpression expression) { }
        /// <summary>
        ///     Visitor pattern method for <see cref="DbExceptExpression" />.
        /// </summary>
        /// <param name="expression"> The DbExceptExpression that is being visited. </param>
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="expression" />
        ///     is null
        /// </exception>
        public override void Visit(DbExceptExpression expression)
        {
            Check.NotNull(expression, "expression");

            VisitBinaryExpression(expression);
        }
        public override LegacyCommandTrees.DbExpression Visit(DbExceptExpression expression)
        {
            Debug.Assert(expression != null, "expression != null");

            return(expression.Left.Accept(this).Except(expression.Right.Accept(this)));
        }
Beispiel #10
0
 public override SqlFragment Visit(DbExceptExpression expression)
 {
     throw new NotSupportedException();
 }
Beispiel #11
0
            public override DbExpressionEntitySetInfo Visit(DbExceptExpression expression)
            {
                Check.NotNull(expression, "expression");

                return(null);
            }
 public override void Visit(DbExceptExpression expression)
 {
     throw new NotImplementedException();
 }
Beispiel #13
0
 public override DbExpressionEntitySetInfo Visit(DbExceptExpression expression)
 {
     return(null);
 }
 public override IPostgreSqlFragment Visit(DbExceptExpression expression)
 {
     throw new NotImplementedException();
 }
Beispiel #15
0
 public override object Visit(DbExceptExpression expression)
 {
     this.Visit(expression.Left);
     this.Visit(expression.Right);
     return(null);
 }
 public override TreeNode Visit(DbExceptExpression e)
 {
     return(this.VisitBinary(e));
 }
Beispiel #17
0
        /// <summary>
        /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbExceptExpression"/>.
        /// </summary>
        /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbExceptExpression"/> that is visited.</param>
        public override void Visit(DbExceptExpression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            expression.Left.Accept(this);
            expression.Right.Accept(this);
        }
 public override void Visit(DbExceptExpression e)
 {
     BeginBinary(e);
     End(e);
 }
 public override DbExpression Visit(DbExceptExpression e)
 {
     Check.NotNull <DbExceptExpression>(e, nameof(e));
     return(this.TransformIntersectOrExcept(this.VisitExpression(e.Left), this.VisitExpression(e.Right), DbExpressionKind.Except));
 }
 public override void Visit(DbExceptExpression expression)
 {
     throw new NotSupportedException("Visit(\"DbExceptExpression\") is not supported.");
 }
 public override void Visit(DbExceptExpression e)
 {
     BeginBinary(e);
     End(e);
 }
Beispiel #22
0
 public override void Visit(DbExceptExpression expression)
 {
     VisitBinary(expression);
 }
 public override void Visit(DbExceptExpression expression)
 {
     Contract.Requires(expression != null);
 }
Beispiel #24
0
 public override void Visit(DbExceptExpression e)
 {
     Check.NotNull <DbExceptExpression>(e, nameof(e));
     this.BeginBinary((DbBinaryExpression)e);
     this.End((DbExpression)e);
 }
		public override void Visit(DbExceptExpression expression)
		{
			throw new NotSupportedException("Visit(\"ExceptExpression\") is not supported.");
		}
        public override TReturn Visit(DbExceptExpression expression)
        {
            Check.NotNull(expression, "expression");

            throw ConstructNotSupportedException(expression);
        }
Beispiel #27
0
 public override void Visit(DbExceptExpression expression)
 {
   VisitBinary(expression);
 }
Beispiel #28
0
 /// <summary>
 /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbExceptExpression"/>.
 /// </summary>
 /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbExceptExpression"/> that is visited.</param>
 public override void Visit(DbExceptExpression expression)
 {
     expression.Left.Accept(this);
     expression.Right.Accept(this);
 }