C# 클래스 Microsoft.Isam.Esent.Interop.Transaction

A class that encapsulates a transaction on a JET_SESID.
상속: Microsoft.Isam.Esent.Interop.EsentResource
파일 보기 프로젝트 열기: ayende/managed-esent 1 사용 예제들

공개 메소드들

메소드 설명
Begin ( ) : void

Begin a transaction. This object should not currently be in a transaction.

Commit ( CommitTransactionGrbit grbit ) : void

Commit a transaction. This object should be in a transaction.

Rollback ( ) : void

Rollback a transaction. This object should be in a transaction.

Transaction ( JET_SESID sesid ) : System

Initializes a new instance of the Transaction class. This automatically begins a transaction. The transaction will be rolled back if not explicitly committed.

보호된 메소드들

메소드 설명
ReleaseResource ( ) : void

Called when the transaction is being disposed while active. This should rollback the transaction.

메소드 상세

Begin() 공개 메소드

Begin a transaction. This object should not currently be in a transaction.
public Begin ( ) : void
리턴 void

Commit() 공개 메소드

Commit a transaction. This object should be in a transaction.
public Commit ( CommitTransactionGrbit grbit ) : void
grbit CommitTransactionGrbit JetCommitTransaction options.
리턴 void

ReleaseResource() 보호된 메소드

Called when the transaction is being disposed while active. This should rollback the transaction.
protected ReleaseResource ( ) : void
리턴 void

Rollback() 공개 메소드

Rollback a transaction. This object should be in a transaction.
public Rollback ( ) : void
리턴 void

Transaction() 공개 메소드

Initializes a new instance of the Transaction class. This automatically begins a transaction. The transaction will be rolled back if not explicitly committed.
public Transaction ( JET_SESID sesid ) : System
sesid JET_SESID The session to start the transaction for.
리턴 System