Export (0) Print
Expand All

DefaultExpressionVisitor Class

.NET Framework 4.5

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.

System.Object
  System.Data.Common.CommandTrees.DbExpressionVisitor(DbExpression)
    System.Data.Common.CommandTrees.DefaultExpressionVisitor

Namespace:  System.Data.Common.CommandTrees
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

type DefaultExpressionVisitor =  
    class 
        inherit DbExpressionVisitor<DbExpression>
    end

The DefaultExpressionVisitor type exposes the following members.

  NameDescription
Protected methodDefaultExpressionVisitorInitializes a new instance of the DefaultExpressionVisitor class.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnEnterScopeRepresents an event when entering the scope for the expression visitor with specified scope variables.
Protected methodOnExitScopeExits the scope for the expression visitor.
Protected methodOnExpressionReplacedReplaces an old expression with a new one for the expression visitor.
Protected methodOnVariableReboundRepresents an event when the variable is rebound for the expression visitor.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodVisit(DbAndExpression)Implements the visitor pattern for the logical AND expression. (Overrides DbExpressionVisitor(TResultType).Visit(DbAndExpression).)
Public methodVisit(DbApplyExpression)Implements the visitor pattern for the invocation of the specified function for each element in the specified input set. (Overrides DbExpressionVisitor(TResultType).Visit(DbApplyExpression).)
Public methodVisit(DbArithmeticExpression)Implements the visitor pattern for the arithmetic operation applied to numeric arguments. (Overrides DbExpressionVisitor(TResultType).Visit(DbArithmeticExpression).)
Public methodVisit(DbCaseExpression)Implements the visitor pattern for the When, Then, and Else clauses. (Overrides DbExpressionVisitor(TResultType).Visit(DbCaseExpression).)
Public methodVisit(DbCastExpression)Implements the visitor pattern for the type conversion of a single argument to the specified type. (Overrides DbExpressionVisitor(TResultType).Visit(DbCastExpression).)
Public methodVisit(DbComparisonExpression)Implements the visitor pattern for the comparison operation applied to two arguments. (Overrides DbExpressionVisitor(TResultType).Visit(DbComparisonExpression).)
Public methodVisit(DbConstantExpression)Implements the visitor pattern for the different kinds of constants. (Overrides DbExpressionVisitor(TResultType).Visit(DbConstantExpression).)
Public methodVisit(DbCrossJoinExpression)Implements the visitor pattern for the unconditional join operation between the given collection arguments. (Overrides DbExpressionVisitor(TResultType).Visit(DbCrossJoinExpression).)
Public methodVisit(DbDerefExpression)Implements the visitor pattern for the expression that retrieves an entity based on the specified reference. (Overrides DbExpressionVisitor(TResultType).Visit(DbDerefExpression).)
Public methodVisit(DbDistinctExpression)Implements the visitor pattern for the removed duplicate elements from the specified set argument. (Overrides DbExpressionVisitor(TResultType).Visit(DbDistinctExpression).)
Public methodVisit(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. (Overrides DbExpressionVisitor(TResultType).Visit(DbElementExpression).)
Public methodVisit(DbEntityRefExpression)Implements the visitor pattern for the expression that extracts a reference from the underlying entity instance. (Overrides DbExpressionVisitor(TResultType).Visit(DbEntityRefExpression).)
Public methodVisit(DbExceptExpression)Implements the visitor pattern for the set subtraction operation between the left and right operands. (Overrides DbExpressionVisitor(TResultType).Visit(DbExceptExpression).)
Public methodVisit(DbExpression)Implements the visitor pattern for the basic functionality required by expression types. (Overrides DbExpressionVisitor(TResultType).Visit(DbExpression).)
Public methodVisit(DbFilterExpression)Implements the visitor pattern for a predicate applied to filter an input set. (Overrides DbExpressionVisitor(TResultType).Visit(DbFilterExpression).)
Public methodVisit(DbFunctionExpression)Implements the visitor pattern for an invocation of a function. (Overrides DbExpressionVisitor(TResultType).Visit(DbFunctionExpression).)
Public methodVisit(DbGroupByExpression)Implements the visitor pattern for a group by operation. (Overrides DbExpressionVisitor(TResultType).Visit(DbGroupByExpression).)
Public methodVisit(DbIntersectExpression)Implements the visitor pattern for the set intersection operation between the left and right operands. (Overrides DbExpressionVisitor(TResultType).Visit(DbIntersectExpression).)
Public methodVisit(DbIsEmptyExpression)Implements the visitor pattern for an empty set determination applied to a single set argument. (Overrides DbExpressionVisitor(TResultType).Visit(DbIsEmptyExpression).)
Public methodVisit(DbIsNullExpression)Implements the visitor pattern for the null determination applied to a single argument. (Overrides DbExpressionVisitor(TResultType).Visit(DbIsNullExpression).)
Public methodVisit(DbIsOfExpression)Implements the visitor pattern for the type comparison of a single argument against the specified type. (Overrides DbExpressionVisitor(TResultType).Visit(DbIsOfExpression).)
Public methodVisit(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. (Overrides DbExpressionVisitor(TResultType).Visit(DbJoinExpression).)
Public methodVisit(DbLambdaExpression)Implements the visitor pattern for the application of a lambda function to arguments represented by DbExpression objects. (Overrides DbExpressionVisitor(TResultType).Visit(DbLambdaExpression).)
Public methodVisit(DbLikeExpression)Implements the visitor pattern for a string comparison against the specified pattern with an optional escape string. (Overrides DbExpressionVisitor(TResultType).Visit(DbLikeExpression).)
Public methodVisit(DbLimitExpression)Implements the visitor pattern for the restriction of the number of elements in the argument collection to the specified limit value. (Overrides DbExpressionVisitor(TResultType).Visit(DbLimitExpression).)
Public methodVisit(DbNewInstanceExpression)Implements the visitor pattern for the construction of a new instance of a given type, including set and record types. (Overrides DbExpressionVisitor(TResultType).Visit(DbNewInstanceExpression).)
Public methodVisit(DbNotExpression)Implements the visitor pattern for the logical NOT of a single Boolean argument. (Overrides DbExpressionVisitor(TResultType).Visit(DbNotExpression).)
Public methodVisit(DbNullExpression)Implements the visitor pattern for a reference to a typed null literal. (Overrides DbExpressionVisitor(TResultType).Visit(DbNullExpression).)
Public methodVisit(DbOfTypeExpression)Implements the visitor pattern for the retrieval of elements of the specified type from the given set argument. (Overrides DbExpressionVisitor(TResultType).Visit(DbOfTypeExpression).)
Public methodVisit(DbOrExpression)Implements the visitor pattern for the logical OR of two Boolean arguments. (Overrides DbExpressionVisitor(TResultType).Visit(DbOrExpression).)
Public methodVisit(DbParameterReferenceExpression)Implements the visitor pattern for a reference to a parameter declared on the command tree that contains this expression. (Overrides DbExpressionVisitor(TResultType).Visit(DbParameterReferenceExpression).)
Public methodVisit(DbProjectExpression)Implements the visitor pattern for the projection of a given input set over the specified expression. (Overrides DbExpressionVisitor(TResultType).Visit(DbProjectExpression).)
Public methodVisit(DbPropertyExpression)Implements the visitor pattern for retrieving an instance property. (Overrides DbExpressionVisitor(TResultType).Visit(DbPropertyExpression).)
Public methodVisit(DbQuantifierExpression)Implements the visitor pattern for a quantifier operation of the specified kind over the elements of the specified input set. (Overrides DbExpressionVisitor(TResultType).Visit(DbQuantifierExpression).)
Public methodVisit(DbRefExpression)Implements the visitor pattern for a strongly typed reference to a specific instance within an entity set. (Overrides DbExpressionVisitor(TResultType).Visit(DbRefExpression).)
Public methodVisit(DbRefKeyExpression)Implements the visitor pattern for the retrieval of the key value from the underlying reference value. (Overrides DbExpressionVisitor(TResultType).Visit(DbRefKeyExpression).)
Public methodVisit(DbRelationshipNavigationExpression)Implements the visitor pattern for the navigation of a relationship. (Overrides DbExpressionVisitor(TResultType).Visit(DbRelationshipNavigationExpression).)
Public methodVisit(DbScanExpression)Implements the visitor pattern for a scan over an entity set or relationship set, as indicated by the Target property. (Overrides DbExpressionVisitor(TResultType).Visit(DbScanExpression).)
Public methodVisit(DbSkipExpression)Implements the visitor pattern for the skip expression. (Overrides DbExpressionVisitor(TResultType).Visit(DbSkipExpression).)
Public methodVisit(DbSortExpression)Implements the visitor pattern for a sort key that can be used as part of the sort order. (Overrides DbExpressionVisitor(TResultType).Visit(DbSortExpression).)
Public methodVisit(DbTreatExpression)Implements the visitor pattern for a type conversion operation applied to a polymorphic argument. (Overrides DbExpressionVisitor(TResultType).Visit(DbTreatExpression).)
Public methodVisit(DbUnionAllExpression)Implements the visitor pattern for the set union operation between the left and right operands. (Overrides DbExpressionVisitor(TResultType).Visit(DbUnionAllExpression).)
Public methodVisit(DbVariableReferenceExpression)Implements the visitor pattern for a reference to a variable that is currently in scope. (Overrides DbExpressionVisitor(TResultType).Visit(DbVariableReferenceExpression).)
Protected methodVisitAggregateImplements the visitor pattern for the aggregate.
Protected methodVisitEntitySetImplements the visitor pattern for the entity set.
Protected methodVisitExpressionImplements the visitor pattern for the expression.
Protected methodVisitExpressionBindingImplements the visitor pattern for expression binding.
Protected methodVisitExpressionBindingListImplements the visitor pattern for the expression binding list.
Protected methodVisitExpressionListImplements the visitor pattern for the expression list.
Protected methodVisitFunctionImplements the visitor pattern for the function.
Protected methodVisitFunctionAggregateImplements the visitor pattern for the function aggregate.
Protected methodVisitGroupAggregateImplements the visitor pattern for the group aggregate.
Protected methodVisitGroupExpressionBindingImplements the visitor pattern for the group expression binding.
Protected methodVisitLambdaImplements the visitor pattern for the Lambda function.
Protected methodVisitSortClauseImplements the visitor pattern for the sort clause.
Protected methodVisitSortOrderImplements the visitor pattern for the sort order.
Protected methodVisitTypeImplements the visitor pattern for the type.
Protected methodVisitTypeUsageImplements the visitor pattern for the type usage.
Top

.NET Framework

Supported in: 4.6, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft