Npgsql API Documentation |

# NpgsqlConnection.BeginTransaction Method ()

[This is preliminary documentation and subject to change.]

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