Table of Contents

Class SqlCommandScenario

Namespace
LinqToDB.Internal.SqlProvider
Assembly
linq2db.dll

An ordered list of steps produced for one logical database operation, plus which step(s) yield the outcome. The scenario is a logical plan; how its steps map to physical commands is decided by SqlCommandGroupPlan.

public sealed record SqlCommandScenario : IEquatable<SqlCommandScenario>
Inheritance
object
SqlCommandScenario
Implements
Extension Methods

Properties

OutcomeSteps

Candidate result step indices; the scenario outcome is the value of the last executed candidate. A gate-only step (e.g. an existence check) is not listed here.

public required IReadOnlyList<int> OutcomeSteps { get; init; }

Property Value

IReadOnlyList<int>

Steps

The ordered steps.

public required IReadOnlyList<SqlCommandStep> Steps { get; init; }

Property Value

IReadOnlyList<SqlCommandStep>