8 writes to _currentTransaction
System.Data (8)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (8)
267
_currentTransaction
= new SqlInternalTransaction(this, TransactionType.Context, null, contextTransactionId);
271
_currentTransaction
= null; // there really isn't a transaction.
303
_currentTransaction
= null;
322
_currentTransaction
= null; // clean up our current transaction too
334
_currentTransaction
= null;
502
_currentTransaction
= null;
513
_currentTransaction
= _pendingTransaction;
521
_currentTransaction
= new SqlInternalTransaction(this, transactionType, null, transactionId);
24 references to _currentTransaction
System.Data (24)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (24)
147
return
_currentTransaction
;
301
if (null !=
_currentTransaction
) {
302
if (
_currentTransaction
.IsContext) {
305
else if (
_currentTransaction
.IsLocal) {
306
_currentTransaction
.CloseFromConnection();
331
Debug.Assert(
_currentTransaction
== null ||
_currentTransaction
== internalTransaction, "disconnecting different transaction");
333
if (
_currentTransaction
!= null &&
_currentTransaction
== internalTransaction) {
370
Debug.Assert(_smiEventSink.HasMessages || null !=
_currentTransaction
, "begin transaction without TransactionStarted event?");
374
Debug.Assert(null !=
_currentTransaction
, "commit transaction without TransactionStarted event?");
376
_smiConnection.CommitTransaction(
_currentTransaction
.TransactionId, _smiEventSink);
380
Debug.Assert(null !=
_currentTransaction
, "promote transaction without TransactionStarted event?");
381
PromotedDTCToken = _smiConnection.PromoteTransaction(
_currentTransaction
.TransactionId, _smiEventSink);
386
Debug.Assert(null !=
_currentTransaction
, "rollback/ifrollback transaction without TransactionStarted event?");
387
_smiConnection.RollbackTransaction(
_currentTransaction
.TransactionId, transactionName, _smiEventSink);
391
Debug.Assert(null !=
_currentTransaction
, "save transaction without TransactionStarted event?");
392
_smiConnection.CreateTransactionSavePoint(
_currentTransaction
.TransactionId, transactionName, _smiEventSink);
494
if (null !=
_currentTransaction
) {
501
_currentTransaction
.Completed(transactionState);
512
Debug.Assert(null ==
_currentTransaction
, "non-null current transaction with an env change");
516
if (null !=
_currentTransaction
) {
517
_currentTransaction
.TransactionId = transactionId; // this is defined as a ULongLong in the server and in the TDS Spec.
523
_currentTransaction
.Activate(); // SQLBUDT #376531 -- ensure this is activated to prevent asserts later.