public override DbExpression Visit(DbScanExpression expression)
        {
            EntityUtil.CheckArgumentNull(expression, "expression");

            DbExpression result = expression;

            EntitySetBase newSet = this.VisitEntitySet(expression.Target);

            if (!object.ReferenceEquals(expression.Target, newSet))
            {
                result = CqtBuilder.Scan(newSet);
            }
            NotifyIfChanged(expression, result);
            return(result);
        }
 /// <summary>
 /// Typed visitor pattern method for DbScanExpression.
 /// </summary>
 /// <param name="expression">The DbScanExpression that is being visited.</param>
 /// <returns>An instance of TResultType.</returns>
 public abstract TResultType Visit(DbScanExpression expression);
 /// <summary>
 /// Visitor pattern method for <see cref="DbScanExpression"/>.
 /// </summary>
 /// <param name="expression">The DbScanExpression that is being visited.</param>
 /// <exception cref="ArgumentNullException"><paramref name="expression"/> is null</exception>
 public override void Visit(DbScanExpression expression)
 {
     // #433613: PreSharp warning 56506: Parameter 'expression' to this public method must be validated: A null-dereference can occur here.
     EntityUtil.CheckArgumentNull(expression, "expression");
 }
Exemple #4
0
 /// <summary>
 /// Visitor pattern method for DbScanExpression.
 /// </summary>
 /// <param name="expression">The DbScanExpression that is being visited.</param>
 public abstract void Visit(DbScanExpression expression);