3 writes to _connection
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
285
_connection
= connection;
306
_connection
= new SqlConnection(connectionString);
825
_connection
= null;
59 references to _connection
System.Data (59)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (59)
404
if(null !=
_connection
) {
405
if(
_connection
.StatisticsEnabled) {
406
return
_connection
.Statistics;
443
if (
_connection
.IsShiloh) {
447
if (
_connection
.IsKatmaiOrNewer) {
450
else if (
_connection
.IsYukonOrNewer) {
538
if (
_connection
.IsShiloh && 0 == internalResults[CollationResultId].Count) {
552
isInTransaction =
_connection
.HasLocalTransaction;
558
if(isInTransaction && null == _externalTransaction && null == _internalTransaction && (
_connection
.Parser != null &&
_connection
.Parser.CurrentTransaction != null &&
_connection
.Parser.CurrentTransaction.IsLocal)) {
657
if(
_connection
.IsShiloh) {
821
if(
_connection
!= null) {
823
_connection
.Dispose();
1163
if(null ==
_connection
) {
1166
if (
_connection
.IsContextConnection) {
1170
if(_ownConnection &&
_connection
.State != ConnectionState.Open) {
1171
_connection
.Open();
1175
_connection
.ValidateConnectionForExecute(method, null);
1180
if(null != _externalTransaction &&
_connection
!= _externalTransaction.Connection) {
1189
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
1204
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
1216
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
1232
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
1428
value =
_connection
.GetBytes(value);
1748
Task reconnectTask =
_connection
._currentReconnectionTask;
1772
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
1790
bestEffortCleanupTarget = SqlInternalConnection.GetBestEffortCleanupTarget(
_connection
);
1824
_connection
.Abort(e);
1828
_connection
.Abort(e);
1832
_connection
.Abort(e);
1936
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
1986
if ((_SqlDataReaderRowSource != null) && (
_connection
.IsKatmaiOrNewer)) {
2005
SqlConnection connection =
_connection
;
2059
_connection
.GetOpenTdsConnection());
2084
if (ConnectionState.Open !=
_connection
.State) {
2085
exception = ADP.OpenConnectionRequired("CheckAndRaiseNotification",
_connection
.State);
2112
if (
_connection
.State != ConnectionState.Open) {
2113
throw ADP.OpenConnectionRequired(SQL.WriteToServer,
_connection
.State);
2187
AsyncHelper.ContinueTask(readTask, source, () => CopyRowsAsync(i + 1, totalRows, cts, source), connectionToDoom:
_connection
.GetOpenTdsConnection());
2203
AsyncHelper.ContinueTask(readTask, source, onSuccess: () => CopyRowsAsync(i + 1, totalRows, cts, source), connectionToDoom:
_connection
.GetOpenTdsConnection());
2205
}, connectionToDoom:
_connection
.GetOpenTdsConnection());
2234
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
2239
_internalTransaction =
_connection
.BeginTransaction();
2267
},
_connection
.GetOpenTdsConnection());
2302
_connection
.DataSource);
2318
},
_connection
.GetOpenTdsConnection(), _ => CopyBatchesAsyncContinuedOnError(cleanupParser: false), () => CopyBatchesAsyncContinuedOnError(cleanupParser: true));
2369
}, connectionToDoom:
_connection
.GetOpenTdsConnection(), onFailure: _ => CopyBatchesAsyncContinuedOnError(cleanupParser: false));
2386
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
2514
},
_connection
.GetOpenTdsConnection());
2559
SqlInternalConnectionTds internalConnection =
_connection
.GetOpenTdsConnection();
2561
_parser =
_connection
.Parser;
2566
reconnectTask =
_connection
.ValidateAndReconnect(
2596
_parserLock =
_connection
.GetOpenTdsConnection()._parserLock;
2600
connectionToAbort:
_connection
,
2613
_parserLock =
_connection
.GetOpenTdsConnection()._parserLock;
2620
_connection
.AddWeakReference(this, SqlReferenceCollection.BulkCopyTag);
2642
AsyncHelper.ContinueTask(internalResultsTask, source, () => WriteToServerInternalRestContinuedAsync(internalResultsTask.Result, cts, source),
_connection
.GetOpenTdsConnection());
2706
},
_connection
.GetOpenTdsConnection());