dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlTransaction Class / Connection Property

In This Topic
    Connection Property (SqlTransaction)
    In This Topic
    Gets the SqlConnection 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 SqlConnection
    public new SqlConnection Connection {get;}

    Property Value

    The SqlConnection 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 SqlConnection object associated with a particular transaction created by SqlConnection.BeginTransaction.
    See Also