Firebird ADO.NET Provider SDK Documentation - v1.7

FbConnection.BeginTransaction Method (FbTransactionOptions, String)

Begins a new transaction using the specified options and transaction name.

[Visual Basic]
Overloads Public Function BeginTransaction( _
   ByVal options As FbTransactionOptions, _
   ByVal transactionName As String _
) As FbTransaction
[C#]
public FbTransaction BeginTransaction(
   FbTransactionOptions options,
   string transactionName
);

Parameters

options
A FbTransactionOptions value.
transactionName
The name of the transaction.

Return Value

An FbTransaction object.

Remarks

To commit or rollback the transaction, you must explicitly use the Commit or Rollback methods.

Exceptions

Exception Type Condition
InvalidOperationException

A transaction is currently active. Parallel transactions are not supported.

Or the connection is not valid and Open.

See Also

FbConnection Class | FirebirdSql.Data.Firebird Namespace | FbConnection.BeginTransaction Overload List