Class SqlStatement
An SQL statement to be executed by an IDatabaseGateway.
Inherited Members
Namespace: Activout.DatabaseClient
Assembly: Activout.DatabaseClient.dll
Syntax
public class SqlStatement
Properties
| Edit this page View SourceEffectiveType
The type to map each result row to.
Declaration
public required Type EffectiveType { get; init; }
Property Value
| Type | Description |
|---|---|
| Type |
Parameters
The parameters to bind.
Declaration
public IList<QueryParameter> Parameters { get; }
Property Value
| Type | Description |
|---|---|
| IList<QueryParameter> |
Sql
The SQL text.
Declaration
public required string Sql { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Transaction
The transaction to run in, or null for none.
Declaration
public IDbTransaction? Transaction { get; init; }
Property Value
| Type | Description |
|---|---|
| IDbTransaction |