DefaultExpressionVisitor 类

定义

从给定的根表达式访问表达式树的每个元素。Visits each element of an expression tree from a given root expression. 如果任何元素更改,则树重新生成回根目录,且返回新的根表达式;否则,返回原始根表达式。If any element changes, the tree is rebuilt back to the root and the new root expression is returned; otherwise the original root expression is returned.

public ref class DefaultExpressionVisitor : System::Data::Common::CommandTrees::DbExpressionVisitor<System::Data::Common::CommandTrees::DbExpression ^>
public class DefaultExpressionVisitor : System.Data.Common.CommandTrees.DbExpressionVisitor<System.Data.Common.CommandTrees.DbExpression>
type DefaultExpressionVisitor = class
    inherit DbExpressionVisitor<DbExpression>
Public Class DefaultExpressionVisitor
Inherits DbExpressionVisitor(Of DbExpression)
继承
DefaultExpressionVisitor

构造函数

DefaultExpressionVisitor()

初始化 DefaultExpressionVisitor 类的新实例。Initializes a new instance of the DefaultExpressionVisitor class.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnEnterScope(IEnumerable<DbVariableReferenceExpression>)

当使用指定的范围变量进入表达式访问程序的范围时表示事件。Represents an event when entering the scope for the expression visitor with specified scope variables.

OnExitScope()

退出表达式访问者的范围。Exits the scope for the expression visitor.

OnExpressionReplaced(DbExpression, DbExpression)

用新的表达式为表达式访问程序替换旧的。Replaces an old expression with a new one for the expression visitor.

OnVariableRebound(DbVariableReferenceExpression, DbVariableReferenceExpression)

当重新对表达式访问程序绑定变量时表示事件。Represents an event when the variable is rebound for the expression visitor.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
Visit(DbAndExpression)

实现 logical AND 表达式的访问者模式。Implements the visitor pattern for the logical AND expression.

Visit(DbApplyExpression)

实现指定输入集中的每个元素调用指定函数的访问者模式。Implements the visitor pattern for the invocation of the specified function for each element in the specified input set.

Visit(DbArithmeticExpression)

实现应用于数值参数的算术运算的访问者模式。Implements the visitor pattern for the arithmetic operation applied to numeric arguments.

Visit(DbCaseExpression)

实现 When, Then, 和 Else 子句的访问者模式。Implements the visitor pattern for the When, Then, and Else clauses.

Visit(DbCastExpression)

实现将单个参数转换为指定类型的访问者模式。Implements the visitor pattern for the type conversion of a single argument to the specified type.

Visit(DbComparisonExpression)

实现应用于两个参数的比较操作的访问者模式。Implements the visitor pattern for the comparison operation applied to two arguments.

Visit(DbConstantExpression)

实现不同种类的常数的访问者模式。Implements the visitor pattern for the different kinds of constants.

Visit(DbCrossJoinExpression)

实现给定集合参数之间的无条件联接操作的访问者模式。Implements the visitor pattern for the unconditional join operation between the given collection arguments.

Visit(DbDerefExpression)

实现基于指定的引用检索实体的表达式的访问者模式。Implements the visitor pattern for the expression that retrieves an entity based on the specified reference.

Visit(DbDistinctExpression)

实现中从指定集参数中移除的重复元素的访问者模式。Implements the visitor pattern for the removed duplicate elements from the specified set argument.

Visit(DbElementExpression)

实现指定集参数转换到单一实例指定集参数转换,再到单一实例的访问者模式。Implements the visitor pattern for the conversion of the specified set argument to a singleton the conversion of the specified set argument to a singleton.

Visit(DbEntityRefExpression)

实现从基础实体实例提取引用的表达式的访问者模式。Implements the visitor pattern for the expression that extracts a reference from the underlying entity instance.

Visit(DbExceptExpression)

实现左操作数和右操作数之间的减法操作的访问者模式。Implements the visitor pattern for the set subtraction operation between the left and right operands.

Visit(DbExpression)

实现表达式类型所需的基本功能的访问者模式。Implements the visitor pattern for the basic functionality required by expression types.

Visit(DbFilterExpression)

实现一个应用于筛选输入设置的谓语的访问者模式。Implements the visitor pattern for a predicate applied to filter an input set.

Visit(DbFunctionExpression)

实现一个调用某种功能的的访问者模式。Implements the visitor pattern for an invocation of a function.

Visit(DbGroupByExpression)

通过操作实现一个团队的访问者模式。Implements the visitor pattern for a group by operation.

Visit(DbIntersectExpression)

实现左操作数和右操作数之间的交集操作的访问者模式。Implements the visitor pattern for the set intersection operation between the left and right operands.

Visit(DbIsEmptyExpression)

实现一个应用于单个集参数的空集确定的访问者模式。Implements the visitor pattern for an empty set determination applied to a single set argument.

Visit(DbIsNullExpression)

实现一个应用于单个参数的 null 确定的访问者模式。Implements the visitor pattern for the null determination applied to a single argument.

Visit(DbIsOfExpression)

实现将单个参数与指定类型进行比较的类型比较的访问者模式。Implements the visitor pattern for the type comparison of a single argument against the specified type.

Visit(DbJoinExpression)

表示在指定联接条件下给定的集合参数之间的内部联接、左外部联接或完全外部联接操作的访问者模式的实现。Implements the visitor pattern for an inner, left outer, or full outer join operation between the given collection arguments on the specified join condition.

Visit(DbLambdaExpression)

实现由 DbExpression 对象所表示的应用一个 lambda 函数到参数的访问者模式。Implements the visitor pattern for the application of a lambda function to arguments represented by DbExpression objects.

Visit(DbLikeExpression)

表示与带有可选转义字符串的指定模式进行比较的字符串比较的访问者模式的实现。Implements the visitor pattern for a string comparison against the specified pattern with an optional escape string.

Visit(DbLimitExpression)

表示将参数集合中的元素个数限制为指定限制值的限制的访问者模式。Implements the visitor pattern for the restriction of the number of elements in the argument collection to the specified limit value.

Visit(DbNewInstanceExpression)

表示给定类型的新实例的构造,包括集和记录类型的访问者模式。Implements the visitor pattern for the construction of a new instance of a given type, including set and record types.

Visit(DbNotExpression)

实现逻辑而非单一 Boolean 参数的访问者模式。Implements the visitor pattern for the logical NOT of a single Boolean argument.

Visit(DbNullExpression)

实现一个对类型化 null 文本引用的访问者模式。Implements the visitor pattern for a reference to a typed null literal.

Visit(DbOfTypeExpression)

表示根据给定集参数检索的指定类型的元素的访问者模式。Implements the visitor pattern for the retrieval of elements of the specified type from the given set argument.

Visit(DbOrExpression)

实现逻辑或两个 Boolean 参数的访问者模式。Implements the visitor pattern for the logical OR of two Boolean arguments.

Visit(DbParameterReferenceExpression)

表示对包含此表达式的命令目录树中所声明的参数的引用的访问者模式的实现。Implements the visitor pattern for a reference to a parameter declared on the command tree that contains this expression.

Visit(DbProjectExpression)

实现给定输入集对指定表达式的投影的访问者模式。Implements the visitor pattern for the projection of a given input set over the specified expression.

Visit(DbPropertyExpression)

实现检索一个实例属性的访问者模式。Implements the visitor pattern for retrieving an instance property.

Visit(DbQuantifierExpression)

表示对指定输入集的元素执行的指定类型的限定符运算的访问者模式的实现。Implements the visitor pattern for a quantifier operation of the specified kind over the elements of the specified input set.

Visit(DbRefExpression)

实现一个对实体集中的特定实例的强类型化引用的访问者模式。Implements the visitor pattern for a strongly typed reference to a specific instance within an entity set.

Visit(DbRefKeyExpression)

实现根据基础引用值对键值的检索的访问者模式。Implements the visitor pattern for the retrieval of the key value from the underlying reference value.

Visit(DbRelationshipNavigationExpression)

实现一种关系导航的访问者模式。Implements the visitor pattern for the navigation of a relationship.

Visit(DbScanExpression)

实现一个对目标属性所指示的实体集或关系集的扫描的访问者模式。Implements the visitor pattern for a scan over an entity set or relationship set, as indicated by the Target property.

Visit(DbSkipExpression)

实现 Skip 表达式的访问者模式。Implements the visitor pattern for the skip expression.

Visit(DbSortExpression)

实现一个可以作为排序顺序的一部分的排序关键字的访问者模式。Implements the visitor pattern for a sort key that can be used as part of the sort order.

Visit(DbTreatExpression)

实现一个应用于多态参数的的类型转换操作的访问者模式。Implements the visitor pattern for a type conversion operation applied to a polymorphic argument.

Visit(DbUnionAllExpression)

实现左操作数和右操作数之间的联合操作的访问者模式。Implements the visitor pattern for the set union operation between the left and right operands.

Visit(DbVariableReferenceExpression)

实现一个对当前在范围内的变量的引用的访问者模式。Implements the visitor pattern for a reference to a variable that is currently in scope.

VisitAggregate(DbAggregate)

实现聚合的访问者模式。Implements the visitor pattern for the aggregate.

VisitEntitySet(EntitySetBase)

实现实体数的访问者模式。Implements the visitor pattern for the entity set.

VisitExpression(DbExpression)

实现表达式的访问者模式。Implements the visitor pattern for the expression.

VisitExpressionBinding(DbExpressionBinding)

实现表达式绑定的访问者模式。Implements the visitor pattern for expression binding.

VisitExpressionBindingList(IList<DbExpressionBinding>)

实现表达式绑定列表的访问者模式。Implements the visitor pattern for the expression binding list.

VisitExpressionList(IList<DbExpression>)

实现表达式列表的访问者模式。Implements the visitor pattern for the expression list.

VisitFunction(EdmFunction)

实现函数的访问者模式。Implements the visitor pattern for the function.

VisitFunctionAggregate(DbFunctionAggregate)

实现函数聚合的访问者模式。Implements the visitor pattern for the function aggregate.

VisitGroupAggregate(DbGroupAggregate)

实现组聚合的访问者模式。Implements the visitor pattern for the group aggregate.

VisitGroupExpressionBinding(DbGroupExpressionBinding)

实现组表达式绑定的访问者模式。Implements the visitor pattern for the group expression binding.

VisitLambda(DbLambda)

实现 Lambda 函数的访问者模式。Implements the visitor pattern for the Lambda function.

VisitSortClause(DbSortClause)

实现排序子句的访问者模式。Implements the visitor pattern for the sort clause.

VisitSortOrder(IList<DbSortClause>)

实现排序顺序的访问者模式。Implements the visitor pattern for the sort order.

VisitType(EdmType)

实现类型的访问者模式。Implements the visitor pattern for the type.

VisitTypeUsage(TypeUsage)

实现类型用法的访问者模式。Implements the visitor pattern for the type usage.

适用于