Npgsql Api Docs

NpgsqlConnection.BeginTransaction Method (IsolationLevel)

Begins a database transaction with the specified isolation level.

[Visual Basic]
Overloads Public Function BeginTransaction( _
   ByVal level As IsolationLevel _
) As NpgsqlTransaction
[C#]
new public NpgsqlTransaction BeginTransaction(
   IsolationLevel level
);

Parameters

level
The isolation level under which the transaction should run.

Return Value

A NpgsqlTransaction object representing the new transaction.

Remarks

Currently the IsolationLevel ReadCommitted and Serializable are supported by the PostgreSQL backend. There's no support for nested transactions.

See Also

NpgsqlConnection Class | Npgsql Namespace | NpgsqlConnection.BeginTransaction Overload List