Interface IDatasourceConnection
- Namespace
- YndigoBlue.Velocity.Interfaces
- Assembly
- YndigoBlue.Velocity.dll
Defines connection parameters for database datasources.
public interface IDatasourceConnection
Remarks
Datasource connections encapsulate the information needed to connect to a database, including server location, credentials, connection pooling settings, and timeouts. Each database system has a concrete implementation (SqlServerDatasourceConnection, PostgreSqlDatasourceConnection, etc.) that provides system-specific connection string generation and default values. Advanced settings allow database-specific connection string parameters and runtime context configuration.
Properties
- CommandTimeout
Gets or sets the command execution timeout in seconds.
- ConnectTimeout
Gets or sets the connection timeout in seconds.
- Database
Gets or sets the database name or catalog to connect to.
- DatasourceType
Gets the type of database system for this connection.
- DefaultSrid
Gets or sets the default spatial reference identifier (SRID) for spatial data operations.
- Hostname
Gets or sets the database server hostname or IP address.
- MaxPoolSize
Gets or sets the maximum number of connections in the connection pool.
- MinPoolSize
Gets or sets the minimum number of connections maintained in the connection pool.
- Password
Gets or sets the database authentication password.
- Pooling
Gets or sets whether connection pooling is enabled.
- Port
Gets or sets the database server port number.
- Username
Gets or sets the database authentication username.
Methods
- SetAdvancedSettings(DbConnectionStringBuilder)
Applies advanced connection string settings from a connection string builder.
- SetAdvancedSettings(string)
Parses and applies advanced connection string settings from a semicolon-separated key-value pair string.
- SetContextSettings(string)
Parses and applies runtime context settings specific to the database system.