C# Class Npgsql.NpgsqlTransaction

Represents a transaction to be made in a PostgreSQL database. This class cannot be inherited.
Inheritance: System.Data.Common.DbTransaction
ファイルを表示 Open project: undeadlabs/Npgsql Class Usage Examples

Private Properties

Property Type Description
Cancel void
CheckDisposed void
NpgsqlTransaction System
NpgsqlTransaction System

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose.

Private Methods

Method 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 method

Commits the database transaction.
public Commit ( ) : void
return void

Dispose() protected method

Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Rollback() public method

Rolls back a transaction from a pending state.
public Rollback ( ) : void
return void

Rollback() public method

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

Save() public method

Creates a transaction save point.
public Save ( String savePointName ) : void
savePointName String
return void