/// <summary> /// Visitor pattern method for <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression" />. /// </summary> /// <param name="expression"> The DbLikeExpression that is being visited. </param> /// <exception cref="T:System.ArgumentNullException"> /// <paramref name="expression" /> /// is null /// </exception> public override void Visit(DbLikeExpression expression) { Check.NotNull <DbLikeExpression>(expression, nameof(expression)); this.VisitExpression(expression.Argument); this.VisitExpression(expression.Pattern); this.VisitExpression(expression.Escape); }
/// <summary> /// Visitor pattern method for <see cref="DbLikeExpression" />. /// </summary> /// <param name="expression"> The DbLikeExpression that is being visited. </param> /// <exception cref="ArgumentNullException"> /// <paramref name="expression" /> /// is null /// </exception> public override void Visit(DbLikeExpression expression) { Check.NotNull(expression, "expression"); VisitExpression(expression.Argument); VisitExpression(expression.Pattern); VisitExpression(expression.Escape); }
public override DbExpression Visit(DbLikeExpression expression) { Check.NotNull(expression, "expression"); DbExpression result = expression; var newArgument = VisitExpression(expression.Argument); var newPattern = VisitExpression(expression.Pattern); var newEscape = VisitExpression(expression.Escape); if (!ReferenceEquals(expression.Argument, newArgument) || !ReferenceEquals(expression.Pattern, newPattern) || !ReferenceEquals(expression.Escape, newEscape)) { result = CqtBuilder.Like(newArgument, newPattern, newEscape); } NotifyIfChanged(expression, result); return(result); }
/// <summary> /// When overridden in a derived class, implements the visitor pattern for /// <see /// cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression" /> /// . /// </summary> /// <returns>A result value of a specific type.</returns> /// <param name="expression"> /// The <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression" /> that is being visited. /// </param> public abstract TResultType Visit(DbLikeExpression expression);
/// <summary> /// When overridden in a derived class, implements the visitor pattern for /// <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression" /> /// . /// </summary> /// <param name="expression"> /// The <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLikeExpression" /> that is visited. /// </param> public abstract void Visit(DbLikeExpression expression);
public override void Visit(DbLikeExpression expression) { }