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
commandTextstringThe SQL command text to execute.
parametersobjectThe parameter object passed to Dapper.
commandTimeoutSecondsint?An optional command timeout override in seconds.
Properties
CommandText
Gets the parameterized SQL command text to execute.
public string CommandText { get; }
Property Value
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
Methods
Validate()
Validates the command definition and returns the same instance when valid.
public PostgreSqlCommandDefinition Validate()
Returns
- PostgreSqlCommandDefinition
The validated command definition.