Npgsql Api Docs |

# NpgsqlTransaction.Connection Property

Gets the NpgsqlConnection object associated with the transaction, or a null reference if the transaction is no longer valid.

#### Overload List

Gets the NpgsqlConnection object associated with the transaction, or a null reference if the transaction is no longer valid.

> new public NpgsqlConnection Connection {get;}

Gets the NpgsqlConnection object associated with the transaction, or a null reference if the transaction is no longer valid.

> new public System.Data.Common.DbConnection Connection {get;}

#### See Also

NpgsqlTransaction Class | Npgsql Namespace