SpiCommand
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Owns SQL text and declared positional bindings created by parameterized interpolation. Native datum parameters retain their existing owner and callback lifetime requirements.
public readonly struct SpiCommandProperties
Section titled “Properties”CommandText
Section titled “CommandText”Gets SQL text that refers to each bound parameter value through a positional placeholder.
public string CommandText { get; }Value: string
Exceptions:
- InvalidOperationException: The command was not created with Spi.Sql.
Parameters
Section titled “Parameters”Gets the ordered typed bindings. Mutable managed values and native owners follow SpiParameter’s lifetime rules.
public ReadOnlySpan<SpiParameter> Parameters { get; }Value: ReadOnlySpan<SpiParameter>