Npgsql Api Docs |

# NpgsqlConnection.BeginTransaction Method ()

Begins a database transaction.

[Visual Basic]
Overloads Public Function BeginTransaction() As NpgsqlTransaction
[C#]
new 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