5 instantiations of SqlInternalTransaction
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlDelegatedTransaction.cs (1)
98
_internalTransaction = new
SqlInternalTransaction
(connection, TransactionType.Delegated, null);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (2)
267
_currentTransaction = new
SqlInternalTransaction
(this, TransactionType.Context, null, contextTransactionId);
521
_currentTransaction = new
SqlInternalTransaction
(this, transactionType, null, transactionId);
fx\src\data\System\Data\SqlClient\SqlTransaction.cs (1)
38
_internalTransaction = new
SqlInternalTransaction
(internalConnection, TransactionType.LocalFromAPI, this);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
2093
_currentTransaction = new
SqlInternalTransaction
(_connHandler, transactionType, null, env[ii].newLongValue);
48 references to SqlInternalTransaction
System.Data (48)
fx\src\data\System\Data\SqlClient\SqlDelegatedTransaction.cs (1)
38
private
SqlInternalTransaction
_internalTransaction; // the SQL Server transaction we're delegating to
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (9)
79
abstract internal
SqlInternalTransaction
CurrentTransaction {
87
virtual internal
SqlInternalTransaction
AvailableInternalTransaction {
93
abstract internal
SqlInternalTransaction
PendingTransaction {
112
SqlInternalTransaction
currentTransaction = CurrentTransaction;
120
SqlInternalTransaction
currentTransaction = CurrentTransaction;
336
abstract internal void DisconnectTransaction(
SqlInternalTransaction
internalTransaction);
461
long transactionId =
SqlInternalTransaction
.NullTransactionId;
530
long transactionId =
SqlInternalTransaction
.NullTransactionId;
658
abstract internal void ExecuteTransaction(TransactionRequest transactionRequest, string name, IsolationLevel iso,
SqlInternalTransaction
internalTransaction, bool isDelegateControlRequest);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (8)
24
private
SqlInternalTransaction
_pendingTransaction; // transaction awaiting event signalling that it is active
25
private
SqlInternalTransaction
_currentTransaction; // currently active non-context transaction.
145
override internal
SqlInternalTransaction
CurrentTransaction {
175
override internal
SqlInternalTransaction
PendingTransaction {
260
if (
SqlInternalTransaction
.NullTransactionId != contextTransactionId) {
325
override internal void DisconnectTransaction(
SqlInternalTransaction
internalTransaction) {
347
SqlInternalTransaction
internalTransaction,
356
(null != internalTransaction) ? internalTransaction.TransactionId :
SqlInternalTransaction
.NullTransactionId
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (7)
545
override internal
SqlInternalTransaction
CurrentTransaction {
551
override internal
SqlInternalTransaction
AvailableInternalTransaction {
558
override internal
SqlInternalTransaction
PendingTransaction {
923
override internal void DisconnectTransaction(
SqlInternalTransaction
internalTransaction) {
935
override internal void ExecuteTransaction(TransactionRequest transactionRequest, string name, IsolationLevel iso,
SqlInternalTransaction
internalTransaction, bool isDelegateControlRequest) {
967
SqlInternalTransaction
internalTransaction) {
1051
SqlInternalTransaction
internalTransaction,
fx\src\data\System\Data\SqlClient\SqlTransaction.cs (3)
25
private
SqlInternalTransaction
_internalTransaction;
31
IsolationLevel iso,
SqlInternalTransaction
internalTransaction) {
68
internal
SqlInternalTransaction
InternalTransaction {
fx\src\data\System\Data\SqlClient\TdsParser.cs (18)
160
private
SqlInternalTransaction
_currentTransaction;
161
private
SqlInternalTransaction
_pendingTransaction; // pending transaction for Yukon and beyond.
164
private long _retainedTransactionId =
SqlInternalTransaction
.NullTransactionId;
275
internal
SqlInternalTransaction
CurrentTransaction {
329
internal
SqlInternalTransaction
PendingTransaction {
1138
SqlInternalTransaction
currentTransaction = CurrentTransaction;
1213
internal void DisconnectTransaction(
SqlInternalTransaction
internalTransaction) {
1223
SqlInternalTransaction
currentTransaction = CurrentTransaction;
2099
_retainedTransactionId =
SqlInternalTransaction
.NullTransactionId;
2107
_retainedTransactionId =
SqlInternalTransaction
.NullTransactionId;
2509
Debug.Assert(env.newLongValue !=
SqlInternalTransaction
.NullTransactionId, "New transaction id is null?"); // the server guarantees that zero is an invalid transaction id.
2512
env.newLongValue =
SqlInternalTransaction
.NullTransactionId; // the server guarantees that zero is an invalid transaction id.
2525
Debug.Assert(env.oldLongValue !=
SqlInternalTransaction
.NullTransactionId, "Old transaction id is null?"); // the server guarantees that zero is an invalid transaction id.
2528
env.oldLongValue =
SqlInternalTransaction
.NullTransactionId; // the server guarantees that zero is an invalid transaction id.
7697
SqlInternalTransaction
transaction,
7865
_retainedTransactionId =
SqlInternalTransaction
.NullTransactionId;
9660
private void WriteMarsHeaderData(TdsParserStateObject stateObj,
SqlInternalTransaction
transaction) {
9672
if (null != transaction &&
SqlInternalTransaction
.NullTransactionId != transaction.TransactionId) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
143
internal
SqlInternalTransaction
_executedUnderTransaction = null;
899
internal Int32 IncrementAndObtainOpenResultCount(
SqlInternalTransaction
transaction) {