Table of Contents

Struct SqlNodeInterpreter.RecordSetNodeBehaviorRule

Namespace
LfrlAnvil.Sql.Expressions.Visitors
Assembly
LfrlAnvil.Sql.Core.dll

Represents a custom rule for handling specific SqlRecordSetNode instances.

public readonly struct SqlNodeInterpreter.RecordSetNodeBehaviorRule
Inherited Members

Fields

Node

SqlRecordSetNode to replace. When this property is null, then all record sets will be replaced.

public readonly SqlRecordSetNode? Node

Field Value

SqlRecordSetNode

ReplacementNode

Replacement SqlRecordSetNode. Null replacement means that replaced record sets will be ignored.

public readonly SqlRecordSetNode? ReplacementNode

Field Value

SqlRecordSetNode

Methods

GetRecordSet(SqlRecordSetNode)

Returns the ReplacementNode when the provided recordSet and the current Node match.

[Pure]
public SqlRecordSetNode? GetRecordSet(SqlRecordSetNode recordSet)

Parameters

recordSet SqlRecordSetNode

Record set to check.

Returns

SqlRecordSetNode

The ReplacementNode when the provided recordSet and the current Node match, otherwise the provided recordSet.