Table of Contents

Class SqlCommandStep

Namespace
LinqToDB.Internal.SqlProvider
Assembly
linq2db.dll

A single executable step within a SqlCommandScenario. Pure execution data — the step declares only how it runs; its output lands in the SqlCommandExecutionContext. Behavior lives in the interpreter.

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

Properties

Kind

How the step is executed.

public required SqlStepKind Kind { get; init; }

Property Value

SqlStepKind

OutParameterDbType

Database type of the output parameter, when OutParameterName is set.

public DbType OutParameterDbType { get; init; }

Property Value

DbType

OutParameterName

Name of the output parameter used when the step produces its value via a database output parameter (Oracle/Firebird identity).

public string? OutParameterName { get; init; }

Property Value

string

RunIf

Optional gate; when set, the step runs only if the condition holds against an earlier step's result.

public SqlStepCondition? RunIf { get; init; }

Property Value

SqlStepCondition

Statement

The statement rendered for this step (via the SQL builder), or null for a SelfExecuting step, which has no rendered SQL.

public required SqlStatement? Statement { get; init; }

Property Value

SqlStatement