C# Class PetShop.Data.TransactionManager

TransactionManager is utility class that decorates a IDbTransaction instance.
Inheritance: ITransactionManager, IDisposable
Afficher le fichier Open project: netTiers/netTiers Class Usage Examples

Méthodes publiques

Méthode Description
BeginTransaction ( ) : void

Begins a transaction.

The default IsolationLevel mode is ReadCommitted

BeginTransaction ( IsolationLevel isolationLevel ) : void

Begins a transaction.

Commit ( ) : void

Commit the transaction to the datasource.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Rollback ( ) : void

Rollback the transaction.

TransactionManager ( string connectionString ) : System

Initializes a new instance of the TransactionManager class.

TransactionManager ( string connectionString, string providerInvariantName ) : System

Initializes a new instance of the TransactionManager class.

Private Methods

Méthode Description
TransactionManager ( ) : System

Initializes a new instance of the TransactionManager class.

Method Details

BeginTransaction() public méthode

Begins a transaction.
The default IsolationLevel mode is ReadCommitted
If a transaction is already open.
public BeginTransaction ( ) : void
Résultat void

BeginTransaction() public méthode

Begins a transaction.
If a transaction is already open.
public BeginTransaction ( IsolationLevel isolationLevel ) : void
isolationLevel IsolationLevel The level of the transaction
Résultat void

Commit() public méthode

Commit the transaction to the datasource.
If a transaction is not open.
public Commit ( ) : void
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Rollback() public méthode

Rollback the transaction.
If a transaction is not open.
public Rollback ( ) : void
Résultat void

TransactionManager() public méthode

Initializes a new instance of the TransactionManager class.
public TransactionManager ( string connectionString ) : System
connectionString string The connection string to the database.
Résultat System

TransactionManager() public méthode

Initializes a new instance of the TransactionManager class.
public TransactionManager ( string connectionString, string providerInvariantName ) : System
connectionString string The connection string to the database.
providerInvariantName string Name of the provider invariant.
Résultat System