5 writes to _currentTransaction
System.Data (5)
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
291
_currentTransaction
= value;
1217
_currentTransaction
= null;
2085
_currentTransaction
= _pendingTransaction;
2093
_currentTransaction
= new SqlInternalTransaction(_connHandler, transactionType, null, env[ii].newLongValue);
2136
_currentTransaction
= null;
25 references to _currentTransaction
System.Data (25)
fx\src\data\System\Data\SqlClient\TdsParser.cs (25)
277
return
_currentTransaction
;
280
Debug.Assert(value ==
_currentTransaction
281
|| null ==
_currentTransaction
283
|| (null !=
_currentTransaction
&& !
_currentTransaction
.IsLocal), "attempting to change current transaction?");
289
if ((null ==
_currentTransaction
&& null != value)
290
||(null !=
_currentTransaction
&& null == value)) {
1214
Debug.Assert(
_currentTransaction
!= null &&
_currentTransaction
== internalTransaction, "disconnecting different transaction");
1216
if (
_currentTransaction
!= null &&
_currentTransaction
== internalTransaction) {
2084
Debug.Assert(null ==
_currentTransaction
, "non-null current transaction with an ENV Change");
2088
if (null !=
_currentTransaction
) {
2089
_currentTransaction
.TransactionId = env[ii].newLongValue; // this is defined as a ULongLong in the server and in the TDS Spec.
2112
if (null !=
_currentTransaction
) {
2121
_currentTransaction
.Completed(TransactionState.Committed);
2127
if (
_currentTransaction
.IsDistributed &&
_currentTransaction
.IsActive) {
2130
_currentTransaction
.Completed(TransactionState.Aborted);
2134
_currentTransaction
.Completed(TransactionState.Unknown);
7749
WriteMarsHeaderData(stateObj,
_currentTransaction
);
7789
if (
_currentTransaction
!= transaction) {
7790
Debug.Assert(
_currentTransaction
== null || true == _fResetConnection, "We should not have a current Tx at this point");
11433
null ==
_currentTransaction
? "(null)" :
_currentTransaction
.TraceString(),