dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlTransaction Class / Connection Property

In This Topic
    Connection Property (PgSqlTransaction)
    In This Topic
    Gets the PgSqlConnection object associated with the transaction, or a null reference (Nothing in Visual Basic) if the transaction is no longer valid.
    Syntax
    'Declaration
     
    Public Shadows ReadOnly Property Connection As PgSqlConnection
    public new PgSqlConnection Connection {get;}

    Property Value

    The PgSqlConnection object associated with the transaction.
    Remarks
    A single application may have multiple database connections, and each connection may have a transaction. This property enables you to determine the PgSqlConnection object associated with a particular transaction created by BeginTransaction().
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also