dotConnect for PostgreSQL Documentation
RunOnceCommand Property
See Also  support@devart.com
Devart.Common Namespace > DbConnectionStringBuilder Class : RunOnceCommand Property

Specifies a data source-specific command that should be executed immediately after first establishing the connection. Unlike InitializationCommand, this command is not executed when a connection is taken from the pool.

Syntax

Visual Basic (Declaration) 
Public Property RunOnceCommand As String
C# 
public string RunOnceCommand {get; set;}

Property Value

A data source-specific command that should be executed immediately after establishing the connection.

Remarks

If this command fails, the connection is not established. Devart.Data.PostgreSql.PgSqlConnection throws an exception with the error returned by PostgreSQL.

Requirements

Platforms:Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8, Windows 10, Windows Server 2012 family.

See Also