C# 클래스 Shaolinq.TransactionContext

상속: ISinglePhaseNotification, IDisposable
파일 보기 프로젝트 열기: tumtumtum/Shaolinq 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Acquire TransactionExecutionContext
AnyCommandsHaveBeenPerformed bool
Commit void
GetExecutionVersion int
GetOrCreateCurrent TransactionContext
GetSqlDatabaseContext Shaolinq.Persistence.SqlDatabaseContext
GetSqlTransactionalCommandsContext SqlTransactionalCommandsContext
OnVersionContextFinished void
Rollback void
TransactionContext System

공개 메소드들

메소드 설명
Commit ( Enlistment enlistment ) : void
Dispose ( ) : void
GetAttribute ( string key ) : object
GetCurrent ( DataAccessModel dataAccessModel, bool forWrite ) : TransactionContext
GetCurrentDataContext ( ) : DataAccessObjectDataContext
GetCurrentTransactionContextVersion ( DataAccessModel dataAccessModel ) : int
InDoubt ( Enlistment enlistment ) : void
Prepare ( PreparingEnlistment preparingEnlistment ) : void
Rollback ( Enlistment enlistment ) : void
SetAttribute ( string key, object value ) : void
SinglePhaseCommit ( SinglePhaseEnlistment singlePhaseEnlistment ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
Acquire ( DataAccessModel dataAccessModel, bool forWrite ) : TransactionExecutionContext
AnyCommandsHaveBeenPerformed ( ) : bool
Commit ( ) : void
GetExecutionVersion ( ) : int
GetOrCreateCurrent ( DataAccessModel dataAccessModel, bool forWrite, bool createTransactionIfNotExist ) : TransactionContext
GetSqlDatabaseContext ( ) : SqlDatabaseContext
GetSqlTransactionalCommandsContext ( ) : SqlTransactionalCommandsContext
OnVersionContextFinished ( object sender, EventArgs eventArgs ) : void
Rollback ( ) : void
TransactionContext ( DataAccessTransaction dataAccessTransaction, DataAccessModel dataAccessModel ) : System

메소드 상세

Commit() 공개 메소드

public Commit ( Enlistment enlistment ) : void
enlistment System.Transactions.Enlistment
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetAttribute() 공개 메소드

public GetAttribute ( string key ) : object
key string
리턴 object

GetCurrent() 공개 정적인 메소드

public static GetCurrent ( DataAccessModel dataAccessModel, bool forWrite ) : TransactionContext
dataAccessModel DataAccessModel
forWrite bool
리턴 TransactionContext

GetCurrentDataContext() 공개 메소드

public GetCurrentDataContext ( ) : DataAccessObjectDataContext
리턴 DataAccessObjectDataContext

GetCurrentTransactionContextVersion() 공개 정적인 메소드

public static GetCurrentTransactionContextVersion ( DataAccessModel dataAccessModel ) : int
dataAccessModel DataAccessModel
리턴 int

InDoubt() 공개 메소드

public InDoubt ( Enlistment enlistment ) : void
enlistment System.Transactions.Enlistment
리턴 void

Prepare() 공개 메소드

public Prepare ( PreparingEnlistment preparingEnlistment ) : void
preparingEnlistment System.Transactions.PreparingEnlistment
리턴 void

Rollback() 공개 메소드

public Rollback ( Enlistment enlistment ) : void
enlistment System.Transactions.Enlistment
리턴 void

SetAttribute() 공개 메소드

public SetAttribute ( string key, object value ) : void
key string
value object
리턴 void

SinglePhaseCommit() 공개 메소드

public SinglePhaseCommit ( SinglePhaseEnlistment singlePhaseEnlistment ) : void
singlePhaseEnlistment System.Transactions.SinglePhaseEnlistment
리턴 void