Table of Contents

Class PostgreSqlCommandDefinition

Namespace
Pipelinez.PostgreSql.Mapping
Assembly
Pipelinez.PostgreSql.dll

Represents a parameterized PostgreSQL command that the transport can execute through Dapper.

public sealed class PostgreSqlCommandDefinition
Inheritance
PostgreSqlCommandDefinition
Inherited Members

Constructors

PostgreSqlCommandDefinition(string, object?, int?)

Initializes a new PostgreSQL command definition.

public PostgreSqlCommandDefinition(string commandText, object? parameters, int? commandTimeoutSeconds = null)

Parameters

commandText string

The SQL command text to execute.

parameters object

The parameter object passed to Dapper.

commandTimeoutSeconds int?

An optional command timeout override in seconds.

Properties

CommandText

Gets the parameterized SQL command text to execute.

public string CommandText { get; }

Property Value

string

CommandTimeoutSeconds

Gets the optional command timeout override in seconds.

public int? CommandTimeoutSeconds { get; }

Property Value

int?

Parameters

Gets the parameter object passed to Dapper for command execution.

public object? Parameters { get; }

Property Value

object

Methods

Validate()

Validates the command definition and returns the same instance when valid.

public PostgreSqlCommandDefinition Validate()

Returns

PostgreSqlCommandDefinition

The validated command definition.