Class TypeExpressionVisitor<T1, T2>
Expression visitor that operates over two entity types (used when translating join conditions).
public class TypeExpressionVisitor<T1, T2> : ExpressionVisitor where T1 : Expression where T2 : Expression
Type Parameters
T1The first entity type.
T2The second entity type.
- Inheritance
-
TypeExpressionVisitor<T1, T2>
- Inherited Members
- Extension Methods
Remarks
Renamed from TwoTypeExpressionVisitor to use the arity style (T1, T2) shared by the
rest of the surface. See docs/specs/design/API-NAMING-REVIEW.md finding P1-14.
Properties
Has1
Whether a node of type T1 was found during the visit.
public bool Has1 { get; }
Property Value
Has2
Whether a node of type T2 was found during the visit.
public bool Has2 { get; }
Property Value
Target1
The first node of type T1 found during the visit, or null.
public T1? Target1 { get; }
Property Value
- T1
Target2
The first node of type T2 found during the visit, or null.
public T2? Target2 { get; }
Property Value
- T2
Methods
Visit(Expression?)
Records the first node assignable to T1 or T2 and
stops there; otherwise continues the base traversal.
public override Expression? Visit(Expression? node)
Parameters
nodeExpressionThe current node.
Returns
- Expression
The node, or the result of the base visit.