Class : CNXTransaction

Class : CNXTransaction                        

Namespace:

System.Data.CONNX

Description:

The CNXTransaction class encapsulates a data transaction, enabling unsuccessful updates and inserts to be undone.

Properties:

IsolationLevel

Return Type:

IsolationLevel

Description:

The IsolationLevel property gets/sets the isolation level of the transaction. Currently, this method does not have any effect, but is provided for interface compatibility.

Methods:

 

Commit

Return Type:

Void

Description:

The Commit method causes all changes to be committed to the data source. Once committed, changes cannot be undone.

Parameters:

None

Connection

Return Type:

IDbConnection

Description:

The Connection property gets/sets the CNXConnection for this transaction.

Dispose

Return Type:

Void

Description:

The Dispose method releases any resources held by the object.

Parameters:

None.

Dispose

Return Type:

Void

Description:

The Dispose method releases any resources held by the object.

Parameters:

Disposing

Type:

Bool

Description:

Specifies whether manages resources should also be disposed of (true).

Rollback

Return Type:

Void

Description:

The Rollback method causes all changes to be discarded, reverting the data source to its previous state.

Parameters:

None.