An NDoc Documented Class Library |

# NpgsqlConnection.BeginTransaction Method ()

Begins a database transaction.

[Visual Basic]
Overloads Public Function BeginTransaction() As NpgsqlTransaction
[C#]
public NpgsqlTransaction BeginTransaction();

#### Return Value

A NpgsqlTransaction object representing the new transaction.

#### Remarks

Currently there's no support for nested transactions.

#### See Also

NpgsqlConnection Class | Npgsql Namespace | NpgsqlConnection.BeginTransaction Overload List