Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

SqlStatement

class SqlStatement

Module: System.Data.Sql
Assembly: System.Data.dll
Source file: Sql.rvn

Inheritance: Object → SqlStatement

SQL text and an owned snapshot of named or positional values; providers define binding syntax.

Constructors

3 items
SqlStatement(text: string, values: Sequence<KeyValuePair<string, SqlValue>>) Copies named values without interpreting SQL or normalizing parameter names.
SqlStatement(text: string) No summary available.

Properties

3 items
HasNamedParameters: bool True for the named constructor, including an empty named snapshot.
ParameterCount: int No summary available.
Text: string SQL text before provider-specific parameter binding; values cannot stand for SQL syntax.

Methods

6 items
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
Parameter(index: int) -> SqlValue Zero-based access. An invalid index is a programmer fault.
ParameterName(index: int) -> Optional<string> A name for named values, or None for positional values. Invalid indexes fault.
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString