Метод | Описание | |
---|---|---|
AddForCommit ( ICommittable commit ) : bool |
You should never call this directly, EntitySpaces calls this internally.
|
|
Complete ( ) : void |
You must call Complete to commit the transaction. Calls and transactions can be nested, only the final outer call to Complete will commit the transaction.
|
|
DeEnlist ( IDbCommand cmd ) : void |
You should never call this directly, the providers call this method.
|
|
Enlist ( IDbCommand cmd, string connectionString, CreateIDbConnectionDelegate creator ) : void |
You should never call this directly, the providers call this method.
|
|
GetCurrentTransactionScopeOption ( ) : tgTransactionScopeOption |
This can be used to get the tgTransactionScopeOption from the current tgTransactionScope (remember transactions can be nested). If there is no on-going transaction then tgTransactionScopeOption.None is returned.
|
|
tgTransactionScope ( ) : System |
The default constructor, this transactions tgTransactionScopeOption will be set to Required. The IsolationLevel is set to Unspecified.
|
|
tgTransactionScope ( tgTransactionScopeOption option ) : System |
Use this constructor to control the tgTransactionScopeOption as it applies to this transaction.
|
|
tgTransactionScope ( tgTransactionScopeOption option, IsolationLevel level ) : System |
Use this constructor to control the tgTransactionScopeOption as it applies to this transaction.
|
Метод | Описание | |
---|---|---|
CommonInit ( |
This is the common constructor logic, tx is "this" from the constructor
|
Метод | Описание | |
---|---|---|
GetCurrentTx ( ) : |
Internal method.
|
|
IDisposable ( ) : void |
Internal. Called when the "using" statement is exited.
|
|
Rollback ( ) : void |
Internal method, called if the "using" statement is left without calling scope.Complete()
|
public static AddForCommit ( ICommittable commit ) : bool | ||
commit | ICommittable | Any class that implements ICommittable |
Результат | bool |
protected static CommonInit ( |
||
tx | ||
Результат | void |
public static DeEnlist ( IDbCommand cmd ) : void | ||
cmd | IDbCommand | The command to enlist into a transaction |
Результат | void |
public static Enlist ( IDbCommand cmd, string connectionString, CreateIDbConnectionDelegate creator ) : void | ||
cmd | IDbCommand | The command to enlist into a transaction |
connectionString | string | The connection string passed to the CreateIDbConnectionDelegate delegate |
creator | CreateIDbConnectionDelegate | The delegate previously registered by the provider |
Результат | void |
public static GetCurrentTransactionScopeOption ( ) : tgTransactionScopeOption | ||
Результат | tgTransactionScopeOption |
public tgTransactionScope ( tgTransactionScopeOption option ) : System | ||
option | tgTransactionScopeOption | See |
Результат | System |
public tgTransactionScope ( tgTransactionScopeOption option, IsolationLevel level ) : System | ||
option | tgTransactionScopeOption | See |
level | IsolationLevel | See IsolationLevel in the System.Data namespace |
Результат | System |