C# Class Npgsql.NpgsqlTransaction

Represents a transaction to be made in a PostgreSQL database. This class cannot be inherited.
Inheritance: System.Data.Common.DbTransaction
Afficher le fichier Open project: undeadlabs/Npgsql Class Usage Examples

Private Properties

Свойство Type Description
Cancel void
CheckDisposed void
NpgsqlTransaction System
NpgsqlTransaction System

Méthodes publiques

Méthode Description
Commit ( ) : void

Commits the database transaction.

Rollback ( ) : void

Rolls back a transaction from a pending state.

Rollback ( String savePointName ) : void

Rolls back a transaction from a pending savepoint state.

Save ( String savePointName ) : void

Creates a transaction save point.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Dispose.

Private Methods

Méthode Description
Cancel ( ) : void

Cancel the transaction without telling the backend about it. This is used to make the transaction go away when closing a connection.

CheckDisposed ( ) : void
NpgsqlTransaction ( NpgsqlConnection conn ) : System
NpgsqlTransaction ( NpgsqlConnection conn, IsolationLevel isolation ) : System

Method Details

Commit() public méthode

Commits the database transaction.
public Commit ( ) : void
Résultat void

Dispose() protected méthode

Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Rollback() public méthode

Rolls back a transaction from a pending state.
public Rollback ( ) : void
Résultat void

Rollback() public méthode

Rolls back a transaction from a pending savepoint state.
public Rollback ( String savePointName ) : void
savePointName String
Résultat void

Save() public méthode

Creates a transaction save point.
public Save ( String savePointName ) : void
savePointName String
Résultat void