public override void Visit(DbDistinctExpression expression) { Write(expression); _depth++; Write("Argument", expression.Argument); _depth--; }
public override SqlFragment Visit(DbDistinctExpression expression) { SelectStatement select = VisitInputExpressionEnsureSelect(expression.Argument, null, null); select.IsDistinct = true; return(select); }
public override void Visit(DbDistinctExpression e) { Check.NotNull(e, "e"); BeginUnary(e); End(e); }
/// <summary> /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbDistinctExpression"/>. /// </summary> /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbDistinctExpression"/> that is visited.</param> public override void Visit(DbDistinctExpression expression) { if (expression == null) { throw new ArgumentNullException("expression"); } expression.Argument.Accept(this); }
public override ISqlFragment Visit(DbDistinctExpression e) { var result = VisitExpressionEnsureSqlStatement(e.Argument); if (!IsCompatible(result, e.ExpressionKind)) { Symbol fromSymbol; TypeUsage inputType = MetadataHelpers.GetElementTypeUsage(e.Argument.ResultType); result = CreateNewSelectStatement(result, "distinct", inputType, out fromSymbol); AddFromSymbol(result, "distinct", fromSymbol, false); } result.IsDistinct = true; return(result); }
public override void Visit(DbDistinctExpression e) { VisitUnary(e); }
public override TreeNode Visit(DbDistinctExpression e) { Check.NotNull <DbDistinctExpression>(e, nameof(e)); return(this.VisitUnary((DbUnaryExpression)e)); }
public override SqlFragment Visit(DbDistinctExpression expression) { throw new NotImplementedException(); }
/// <summary> /// Visitor pattern method for <see cref="DbDistinctExpression" />. /// </summary> /// <param name="expression"> The DbDistinctExpression that is being visited. </param> /// <exception cref="ArgumentNullException"> /// <paramref name="expression" /> /// is null /// </exception> public override void Visit(DbDistinctExpression expression) { Check.NotNull(expression, "expression"); VisitUnaryExpression(expression); }
public override bool Visit(DbDistinctExpression expression) { Check.NotNull <DbDistinctExpression>(expression, nameof(expression)); return(this.VisitUnaryExpression((DbUnaryExpression)expression)); }
public override void Visit(DbDistinctExpression expression) { Contract.Requires(expression != null); }
public override bool Visit(DbDistinctExpression expression) { return(VisitUnaryExpression(expression)); }
public override TReturn Visit(DbDistinctExpression expression) { Check.NotNull <DbDistinctExpression>(expression, nameof(expression)); throw this.ConstructNotSupportedException((DbExpression)expression); }
public override TreeNode Visit(DbDistinctExpression e) { return(this.VisitUnary(e)); }
public override void Visit(DbDistinctExpression expression) { this.VisitUnaryExpression((DbUnaryExpression)expression); }
/// <summary> /// <see cref="VisitUnaryExpression" /> /// </summary> /// <param name="expression"> The DbDistinctExpression that is being visited. </param> /// <returns> </returns> public override bool Visit(DbDistinctExpression expression) { Check.NotNull(expression, "expression"); return(VisitUnaryExpression(expression)); }
public override ViewValidator.DbExpressionEntitySetInfo Visit( DbDistinctExpression expression) { Check.NotNull <DbDistinctExpression>(expression, nameof(expression)); return((ViewValidator.DbExpressionEntitySetInfo)null); }
public override TReturn Visit(DbDistinctExpression expression) { Check.NotNull(expression, "expression"); throw ConstructNotSupportedException(expression); }
public override SqlFragment Visit(DbDistinctExpression expression) { SelectStatement select = VisitInputExpressionEnsureSelect(expression.Argument, null, null); select.IsDistinct = true; return select; }
public override void Visit(DbDistinctExpression expression) { }
public override Expression Visit(DbDistinctExpression expression) { return(queryMethodExpressionBuilder.Distinct(this.Visit(expression.Argument))); }
public override void Visit(DbDistinctExpression e) { Check.NotNull <DbDistinctExpression>(e, nameof(e)); this.VisitUnary((DbUnaryExpression)e); }
/// <summary> /// Visitor pattern method for DbDistinctExpression. /// </summary> /// <param name="expression"> The DbDistinctExpression that is being visited. </param> public abstract void Visit(DbDistinctExpression expression);
public override object Visit(DbDistinctExpression expression) { this.Visit(expression.Argument); return(null); }
public override LegacyCommandTrees.DbExpression Visit(DbDistinctExpression expression) { Debug.Assert(expression != null, "expression != null"); return(expression.Argument.Accept(this).Distinct()); }
/// <summary> /// Implements the visitor pattern for <see cref="T:System.Data.Common.CommandTrees.DbDistinctExpression"/>. /// </summary> /// <param name="expression">The <see cref="T:System.Data.Common.CommandTrees.DbDistinctExpression"/> that is visited.</param> public override void Visit(DbDistinctExpression expression) { if (expression == null) { throw new ArgumentNullException("expression"); } expression.Argument.Accept(this); }
public override void Visit(DbDistinctExpression expression) { throw new NotSupportedException("Visit(\"DbDistinctExpression\") is not supported."); }
/// <summary> /// Typed visitor pattern method for DbDistinctExpression. /// </summary> /// <param name="expression"> The DbDistinctExpression that is being visited. </param> /// <returns> An instance of TResultType. </returns> public abstract TResultType Visit(DbDistinctExpression expression);
public override Expression Visit(DbDistinctExpression expression) { return queryMethodExpressionBuilder.Distinct(this.Visit(expression.Argument)); }
public override VfpExpression Visit(DbDistinctExpression expression) { return(new VfpDistinctExpression(expression.ResultType, expression.Argument.Accept(this))); }
public override void Visit(DbDistinctExpression expression) { throw new NotSupportedException("Visit(\"DistinctExpression\") is not supported."); }
public override DbExpressionEntitySetInfo Visit(DbDistinctExpression expression) { Check.NotNull(expression, "expression"); return(null); }
public override void Visit(DbDistinctExpression expression) { VisitUnaryExpression(expression); }
/// <summary> /// Visitor pattern method for DbDistinctExpression. /// </summary> /// <param name="expression"> The DbDistinctExpression that is being visited. </param> public abstract void Visit(DbDistinctExpression expression);
public override void Visit(DbDistinctExpression e) { VisitUnary(e); }
public override void Visit(DbDistinctExpression e) { BeginUnary(e); End(e); }
public override void Visit(DbDistinctExpression e) { Check.NotNull(e, "e"); VisitUnary(e); }
public override TReturn Visit(DbDistinctExpression expression) { throw ConstructNotSupportedException(expression); }
public override void Visit(DbDistinctExpression expression) { VisitUnaryExpression(expression); }
public override TreeNode Visit(DbDistinctExpression e) { Check.NotNull(e, "e"); return(VisitUnary(e)); }
public override DbExpressionEntitySetInfo Visit(DbDistinctExpression expression) { return(null); }
public override void Visit(DbDistinctExpression e) { BeginUnary(e); End(e); }