IDbConnection.BeginTransaction() Method


IDbTransaction IDbConnection.BeginTransaction()


The BeginTransaction method creates a new transaction that can be used to combine changes into a unit that can be committed or discarded all together. There can only be one transaction active per connection.

This method creates a transaction with a system generated name and the default isolation level (IsolationLevel.Serializable).

This method is an explicit interface member implementation and can only be used when the RdmConnection instance is cast to an IDbConnection interface.

Return Value:

Type: IDbTransaction


Exception Condition
InvalidOperationException The connection is closed.
InvalidOperationException A transaction is already in progress.


For more information, reference MSDN documentation for: System.Data.IDbConnection.BeginTransaction