9 writes to Connection
System.Data (2)
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
1396command.Connection = (DbConnection)select.Connection;
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (1)
184command.Connection = this;
System.Data.Entity (3)
System\Data\Common\Utils\CommandHelper.cs (1)
106storeProviderCommand.Connection = ((EntityConnection)entityCommand.Connection).StoreConnection;
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
104command.Connection = connection.StoreConnection;
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
214m_dbCommand.Connection = connection.StoreConnection;
System.Web (1)
UI\WebControls\SqlDataSource.cs (1)
821command.Connection = connection;
System.Workflow.Runtime (3)
Tracking\SqlTrackingService.cs (3)
608command.Connection = _dbResourceAllocator.OpenNewConnectionNoEnlist(); 1167command.Connection = conn; 1343command.Connection = conn;
59 references to Connection
System.Data (5)
fx\src\data\System\Data\Common\DBCommandBuilder.cs (5)
514DbConnection connection = srcCommand.Connection; 1175return select.Connection; 1299command = select.Connection.CreateCommand(); 1392if ((null != command) && (null == command.Connection)) { // MDAC 87649 1396command.Connection = (DbConnection)select.Connection;
System.Web (4)
UI\WebControls\SqlDataSourceView.cs (4)
719if (command.Connection.State != ConnectionState.Open) { 720command.Connection.Open(); 780if (command.Connection.State == ConnectionState.Open) { 781command.Connection.Close();
System.Workflow.Runtime (50)
Tracking\SqlTrackingService.cs (50)
331if ((null != cmd) && (null != cmd.Connection) && (ConnectionState.Closed != cmd.Connection.State)) 332cmd.Connection.Close(); 441if ((null != cmd) && (null != cmd.Connection) && (ConnectionState.Closed != cmd.Connection.State)) 442cmd.Connection.Close(); 555command.Transaction = command.Connection.BeginTransaction(); 589if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State)) 590command.Connection.Close(); 599if (null != command.Connection) 601if (ConnectionState.Open != command.Connection.State) 603if (ConnectionState.Closed != command.Connection.State) 604command.Connection.Close(); 606command.Connection.Dispose(); 671if ((null != cmd) && (null != cmd.Connection) && (ConnectionState.Closed != cmd.Connection.State)) 672cmd.Connection.Close(); 836if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State)) 837command.Connection.Close(); 855if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State)) 856command.Connection.Close(); 1205if ((null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 1378if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 1533if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 1694if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 1831if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 1908if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 1971if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 2011if (ConnectionState.Open != command.Connection.State) 2012command.Connection.Open(); 2013command.Transaction = command.Connection.BeginTransaction(); 2039if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State)) 2040command.Connection.Close(); 2054if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 2093if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State)) 2118if ((null == command) || (null == command.Connection) || (ConnectionState.Open != command.Connection.State))