Table of Contents

Class TypeExpressionVisitor<T1, T2>

Namespace
NextORM.Core
Assembly
nextorm.core.dll

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

T1

The first entity type.

T2

The 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

bool

Has2

Whether a node of type T2 was found during the visit.

public bool Has2 { get; }

Property Value

bool

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

node Expression

The current node.

Returns

Expression

The node, or the result of the base visit.