23 references to CloseConnection
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (1)
272
result = this.sqlCommand.BeginExecuteReader(wrappedCallback, this, CommandBehavior.
CloseConnection
);
System.Data (10)
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (2)
305
if(IsCommandBehavior(CommandBehavior.
CloseConnection
)) {
355
return new DbEnumerator((IDataReader)this, IsCommandBehavior(CommandBehavior.
CloseConnection
));
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (3)
658
if (IsCommandBehavior(CommandBehavior.
CloseConnection
)) {
882
reader = new OleDbDataReader(_connection, _command, 1+Depth, _commandBehavior & ~CommandBehavior.
CloseConnection
);
919
return new DbEnumerator((IDataReader)this, IsCommandBehavior(CommandBehavior.
CloseConnection
));
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (2)
290
if (0 != (behavior & ~(CommandBehavior.SequentialAccess|CommandBehavior.
CloseConnection
))) {
292
throw ADP.NotSupportedCommandBehavior(behavior & ~(CommandBehavior.SequentialAccess|CommandBehavior.
CloseConnection
), method);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
882
bool closeConnection = (IsCommandBehavior(CommandBehavior.
CloseConnection
));
1223
return new DbEnumerator(this, IsCommandBehavior(CommandBehavior.
CloseConnection
));
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
311
CloseInternal(closeConnection: IsCommandBehavior(CommandBehavior.
CloseConnection
));
System.Data.Entity (2)
System\Data\EntityClient\EntityDataReader.cs (2)
170
if ((this._behavior & CommandBehavior.
CloseConnection
) == CommandBehavior.
CloseConnection
)
System.Web (1)
UI\WebControls\SqlDataSourceView.cs (1)
1099
selectResult = command.ExecuteReader(CommandBehavior.
CloseConnection
);
System.Workflow.Runtime (9)
Hosting\SqlWorkflowPersistenceService.cs (3)
263
dr = command.ExecuteReader(CommandBehavior.
CloseConnection
);
377
dr = command.ExecuteReader(CommandBehavior.
CloseConnection
);
649
dr = command.ExecuteReader(CommandBehavior.
CloseConnection
);
Tracking\SqlTrackingQuery.cs (2)
58
reader = cmd.ExecuteReader(CommandBehavior.
CloseConnection
);
102
reader = cmd.ExecuteReader(CommandBehavior.
CloseConnection
);
Tracking\SqlTrackingService.cs (3)
284
reader = ExecuteReaderRetried(cmd, CommandBehavior.
CloseConnection
);
380
reader = ExecuteReaderRetried(cmd, CommandBehavior.
CloseConnection
);
642
reader = ExecuteReaderRetried(cmd, CommandBehavior.
CloseConnection
);
Tracking\SqlTrackingWorkflowInstance.cs (1)
819
reader = cmd.ExecuteReader(CommandBehavior.
CloseConnection
);