16 writes to Connection
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (1)
269this.sqlCommand.Connection = StoreUtilities.CreateConnection(this.connectionString);
System.Data (11)
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (2)
61command.Connection = newConnection; 65command.Connection = null;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (6)
410Connection = connection; 415Connection = connection; 421Connection = connection; 430Connection = from.Connection; 523Connection = (SqlConnection)value; 2948paramsCmd.Connection = null;
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
94BatchCommand.Connection = value;
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (2)
143_com.Connection = _con; 361com.Connection = _con;
System.Web (1)
Management\SqlWebEventProvider.cs (1)
189sqlCommand.Connection = sqlConnHolder.Connection;
System.Workflow.Runtime (3)
Tracking\SqlTrackingQuery.cs (2)
57cmd.Connection = GetConnection(); 101cmd.Connection = GetConnection();
Tracking\SqlTrackingWorkflowInstance.cs (1)
817cmd.Connection = conn;
68 references to Connection
System.Activities.DurableInstancing (11)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (7)
131if (thisPtr.sqlCommand.Connection != null) 133thisPtr.sqlCommand.Connection.Close(); 169if (this.sqlCommand.Connection != null) 171this.sqlCommand.Connection.Close(); 276this.sqlCommand.Connection.Close(); 298if (this.sqlCommand.Connection != null) 300this.sqlCommand.Connection.Close();
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (4)
231if (thisPtr.sqlCommand.Connection != null) 233thisPtr.sqlCommand.Connection.Close(); 311if (this.sqlCommand.Connection != null) 313this.sqlCommand.Connection.Close();
System.Data (28)
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
52SqlConnection connection = command.Connection;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (14)
430Connection = from.Connection; 520return Connection; 2751parsedSProc[1] = this.Connection.Database; 2760if (this.Connection.IsKatmaiOrNewer) { 2768if (this.Connection.IsYukonOrNewer) { 2782paramsCmd = new SqlCommand(cmdText.ToString(), this.Connection, this.Transaction); 3909if (string.IsNullOrWhiteSpace(this.Connection.EnclaveAttestationUrl)) { 5218Connection.CheckGetExtendedUDTInfo(rec, true); 5228thisParam.Value = Connection.GetUdtValue(data, rec, false); 6183result = SqlException.CreateException(errors, Connection.ServerVersion, Connection.ClientConnectionId); 6351if (SqlEventSource.Log.IsEnabled() && Connection != null) 6354SqlEventSource.Log.BeginExecute(GetHashCode(), Connection.DataSource, Connection.Database, commandText);
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (7)
224bestEffortCleanupTarget = SqlInternalConnection.GetBestEffortCleanupTarget(command.Connection); 234if (null != command && null != command.Connection) { 235command.Connection.Abort(e); 240if (null != command && null != command.Connection) { 241command.Connection.Abort(e); 246if (null != command && null != command.Connection) { 247command.Connection.Abort(e);
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
91return BatchCommand.Connection;
fx\src\data\System\Data\SqlClient\SqlDataAdapter.cs (1)
222_commandSet.Connection = command.Connection;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
112_connection = command.Connection;
fx\src\data\System\Data\SqlClient\SqlDependency.cs (2)
1016string commandHash = ComputeCommandHash(command.Connection.ConnectionString, command); // calculate the string representation of command 1105SqlConnection connection = cmd.Connection;
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
8139(cmd.ColumnEncryptionSetting == SqlCommandColumnEncryptionSetting.UseConnectionSetting && cmd.Connection.IsColumnEncryptionSettingEnabled))) {
System.Web (11)
State\sqlstateclientmanager.cs (11)
504ThrowSqlConnectionException(cmd.Connection, e); 879if (cmd.Connection.State != ConnectionState.Open) { 882cmd.Connection.Open(); 900if (!CanRetry(e, cmd.Connection, ref isFirstAttempt, ref endRetryTime)) { 902ThrowSqlConnectionException(cmd.Connection, e); 907ThrowSqlConnectionException(cmd.Connection, e); 918if (cmd.Connection.State != ConnectionState.Open) { 921cmd.Connection.Open(); 931if (!CanRetry(e, cmd.Connection, ref isFirstAttempt, ref endRetryTime)) { 933ThrowSqlConnectionException(cmd.Connection, e); 938ThrowSqlConnectionException(cmd.Connection, e);
System.Web.DataVisualization (5)
Common\General\Chart.cs (5)
541if (command.Connection != null) 543command.Connection.Open(); 557command.Connection.Close(); 664command.Connection.Open(); 670command.Connection.Close();
System.Windows.Forms.DataVisualization (5)
Common\General\Chart.cs (5)
541if (command.Connection != null) 543command.Connection.Open(); 557command.Connection.Close(); 664command.Connection.Open(); 670command.Connection.Close();
System.Workflow.Runtime (7)
Tracking\SqlTrackingQuery.cs (6)
74if (null != cmd && null != cmd.Connection && ConnectionState.Closed != cmd.Connection.State) 75cmd.Connection.Close(); 115if (null != cmd && null != cmd.Connection && ConnectionState.Closed != cmd.Connection.State) 116cmd.Connection.Close();
Tracking\SqlTrackingWorkflowInstance.cs (1)
818cmd.Connection.Open();
System.WorkflowServices (1)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (1)
1158operationResult.command.Connection.Close();