270 references to CommandBehavior
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (1)
272
result = this.sqlCommand.BeginExecuteReader(wrappedCallback, this,
CommandBehavior
.CloseConnection);
System.Data (219)
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
36
CommandBehavior
behavior, // CommandBehavior,
85
CommandBehavior
behavior, // CommandBehavior,
fx\src\data\System\Data\Common\AdapterUtil.cs (5)
440
static internal ArgumentOutOfRangeException InvalidCommandBehavior(
CommandBehavior
value) {
446
return InvalidEnumerationValue(typeof(
CommandBehavior
), (int) value);
448
static internal void ValidateCommandBehavior(
CommandBehavior
value) {
693
static internal ArgumentOutOfRangeException NotSupportedCommandBehavior(
CommandBehavior
value, string method) {
694
return NotSupportedEnumerationValue(typeof(
CommandBehavior
), value.ToString(), method);
fx\src\data\System\Data\Common\DBCommand.cs (10)
184
abstract protected DbDataReader ExecuteDbDataReader(
CommandBehavior
behavior);
189
return (DbDataReader)ExecuteDbDataReader(
CommandBehavior
.Default);
193
return (DbDataReader)ExecuteDbDataReader(
CommandBehavior
.Default);
196
public DbDataReader ExecuteReader(
CommandBehavior
behavior){
200
IDataReader IDbCommand.ExecuteReader(
CommandBehavior
behavior) {
229
return ExecuteReaderAsync(
CommandBehavior
.Default, CancellationToken.None);
233
return ExecuteReaderAsync(
CommandBehavior
.Default, cancellationToken);
236
public Task<DbDataReader> ExecuteReaderAsync(
CommandBehavior
behavior) {
240
public Task<DbDataReader> ExecuteReaderAsync(
CommandBehavior
behavior, CancellationToken cancellationToken) {
244
protected virtual Task<DbDataReader> ExecuteDbDataReaderAsync(
CommandBehavior
behavior, CancellationToken cancellationToken) {
fx\src\data\System\Data\Common\DBCommandBuilder.cs (2)
581
using (IDataReader dataReader = sourceCommand.ExecuteReader(
CommandBehavior
.SchemaOnly |
CommandBehavior
.KeyInfo)){
fx\src\data\System\Data\Common\DbDataAdapter.cs (26)
29
private
CommandBehavior
_fillCommandBehavior;
76
protected internal
CommandBehavior
FillCommandBehavior { // V1.2.3300, MDAC 87511
79
return (_fillCommandBehavior |
CommandBehavior
.SequentialAccess);
86
_fillCommandBehavior = (value |
CommandBehavior
.SequentialAccess);
261
CommandBehavior
cmdBehavior = FillCommandBehavior;
277
CommandBehavior
cmdBehavior = FillCommandBehavior;
290
CommandBehavior
cmdBehavior = FillCommandBehavior;
298
virtual protected DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable,
CommandBehavior
behavior) { // V1.0.3300
320
virtual protected DataTable FillSchema(DataTable dataTable, SchemaType schemaType, IDbCommand command,
CommandBehavior
behavior) { // V1.0.3300
338
return (DataTable) FillSchemaInternal(null, dataTable, schemaType, command, srcTableName, behavior |
CommandBehavior
.SingleResult);
344
private object FillSchemaInternal(DataSet dataset, DataTable datatable, SchemaType schemaType, IDbCommand command, string srcTable,
CommandBehavior
behavior) {
353
using(IDataReader dataReader = command.ExecuteReader(behavior |
CommandBehavior
.SchemaOnly |
CommandBehavior
.KeyInfo)) {
381
CommandBehavior
cmdBehavior = FillCommandBehavior;
395
CommandBehavior
cmdBehavior = FillCommandBehavior;
409
CommandBehavior
cmdBehavior = FillCommandBehavior;
417
virtual protected int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command,
CommandBehavior
behavior) { // V1.0.3300
450
CommandBehavior
cmdBehavior = FillCommandBehavior;
464
CommandBehavior
cmdBehavior = FillCommandBehavior;
472
virtual protected int Fill(DataTable dataTable, IDbCommand command,
CommandBehavior
behavior) { // V1.0.3300
485
virtual protected int Fill(DataTable[] dataTables, int startRecord, int maxRecords, IDbCommand command,
CommandBehavior
behavior) { // V1.2.3300
505
behavior |=
CommandBehavior
.SingleResult;
514
private int FillInternal(DataSet dataset, DataTable[] datatables, int startRecord, int maxRecords, string srcTable, IDbCommand command,
CommandBehavior
behavior) {
524
behavior |=
CommandBehavior
.KeyInfo;
529
behavior |=
CommandBehavior
.SequentialAccess;
1279
using(IDataReader dataReader = dataCommand.ExecuteReader(
CommandBehavior
.SequentialAccess)) {
fx\src\data\System\Data\IDbCommand.cs (1)
58
IDataReader ExecuteReader(
CommandBehavior
behavior);
fx\src\data\System\Data\Odbc\DbDataRecord.cs (1)
70
_randomaccess = (!record.IsBehavior(
CommandBehavior
.SequentialAccess));
fx\src\data\System\Data\Odbc\OdbcCommand.cs (15)
496
override protected DbDataReader ExecuteDbDataReader(
CommandBehavior
behavior) {
513
new public OdbcDataReader ExecuteReader(
CommandBehavior
behavior) {
521
return ExecuteReaderObject(
CommandBehavior
.Default,method.ToString(),true,methodArguments,method);
525
private OdbcDataReader ExecuteReaderObject(
CommandBehavior
behavior, string method, bool needReader) { // MDAC 68324
534
private OdbcDataReader ExecuteReaderObject(
CommandBehavior
behavior,
545
if(0 != (
CommandBehavior
.SingleRow & behavior)) {
547
behavior |=
CommandBehavior
.SingleResult;
585
if(localReader.IsBehavior(
CommandBehavior
.KeyInfo)) {
605
if(localReader.IsBehavior(
CommandBehavior
.KeyInfo) ||
606
localReader.IsBehavior(
CommandBehavior
.SchemaOnly)) {
642
if(!localReader.IsBehavior(
CommandBehavior
.SchemaOnly)) {
647
if((localReader.IsBehavior(
CommandBehavior
.KeyInfo) || localReader.IsBehavior(
CommandBehavior
.SchemaOnly))
667
if(localReader.IsBehavior(
CommandBehavior
.KeyInfo) || _isPrepared) {
746
if(!localReader.IsBehavior(
CommandBehavior
.SchemaOnly)) {
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (1)
187
using (OdbcDataReader reader = new OdbcDataReader(command, cmdWrapper,
CommandBehavior
.Default)) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (15)
46
private
CommandBehavior
_commandBehavior;
67
internal OdbcDataReader(OdbcCommand command, CMDWrapper cmdWrapper,
CommandBehavior
commandbehavior) {
118
internal bool IsBehavior(
CommandBehavior
behavior) {
196
if (IsCommandBehavior(
CommandBehavior
.KeyInfo)) {
305
if(IsCommandBehavior(
CommandBehavior
.CloseConnection)) {
355
return new DbEnumerator((IDataReader)this, IsCommandBehavior(
CommandBehavior
.CloseConnection));
403
private bool IsCommandBehavior(
CommandBehavior
condition) {
555
if (!IsCommandBehavior(
CommandBehavior
.SequentialAccess))
965
bool isRandomAccess = !IsCommandBehavior(
CommandBehavior
.SequentialAccess);
1601
if (_noMoreRows || _noMoreResults || IsCommandBehavior(
CommandBehavior
.SchemaOnly))
1641
if (IsCommandBehavior(
CommandBehavior
.SingleRow)) {
1686
bool singleResult = IsCommandBehavior(
CommandBehavior
.SingleResult);
1762
bool needkeyinfo = IsCommandBehavior(
CommandBehavior
.KeyInfo);
1825
if(IsCommandBehavior(
CommandBehavior
.KeyInfo))
1894
if (IsCommandBehavior(
CommandBehavior
.KeyInfo)) {
fx\src\data\System\Data\OleDb\OleDbCommand.cs (21)
51
private
CommandBehavior
commandBehavior;
504
this.commandBehavior =
CommandBehavior
.Default;
554
return ExecuteReader(
CommandBehavior
.Default);
558
return ExecuteReader(
CommandBehavior
.Default);
561
new public OleDbDataReader ExecuteReader(
CommandBehavior
behavior) {
575
IDataReader IDbCommand.ExecuteReader(
CommandBehavior
behavior) {
579
override protected DbDataReader ExecuteDbDataReader(
CommandBehavior
behavior) {
583
private OleDbDataReader ExecuteReaderInternal(
CommandBehavior
behavior, string method) {
590
if (0 != (
CommandBehavior
.SingleRow & behavior)) {
592
behavior |=
CommandBehavior
.SingleResult;
717
private int ExecuteCommand(
CommandBehavior
behavior, out object executeResult) {
719
if (0 != (
CommandBehavior
.SchemaOnly & this.commandBehavior)) {
755
if ((0 == (
CommandBehavior
.SingleResult & this.commandBehavior)) && _connection.SupportMultipleResults()) {
758
else if (0 == (
CommandBehavior
.SingleRow & this.commandBehavior) || !_executeQuery) {
774
Debug.Assert(0 == (
CommandBehavior
.SingleRow & this.commandBehavior), "SingleRow implies SingleResult");
861
ExecuteReaderInternal(
CommandBehavior
.Default, ADP.ExecuteNonQuery);
877
using(OleDbDataReader reader = ExecuteReaderInternal(
CommandBehavior
.Default, ADP.ExecuteScalar)) {
889
private int ExecuteTableDirect(
CommandBehavior
behavior, out object executeResult) {
1045
private bool InitializeCommand(
CommandBehavior
behavior, bool throwifnotsupported) {
1049
if ((0 != (
CommandBehavior
.KeyInfo & (this.commandBehavior ^ behavior))) || (_lastChangeID != changeid)) {
1224
bool keyInfo = (0 != (
CommandBehavior
.KeyInfo & this.commandBehavior));
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
594
using(OleDbDataReader dataReader = new OleDbDataReader(Connection, null, 0,
CommandBehavior
.Default)) {
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (7)
358
CommandBehavior
behavior = (MissingSchemaAction.AddWithKey != MissingSchemaAction) ? 0 :
CommandBehavior
.KeyInfo;
359
behavior |=
CommandBehavior
.SequentialAccess;
406
CommandBehavior
behavior = (MissingSchemaAction.AddWithKey != MissingSchemaAction) ? 0 :
CommandBehavior
.KeyInfo;
407
behavior |=
CommandBehavior
.SequentialAccess |
CommandBehavior
.SingleRow;
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (12)
27
private
CommandBehavior
_commandBehavior;
83
internal OleDbDataReader(OleDbConnection connection, OleDbCommand command, int depth,
CommandBehavior
commandBehavior) {
97
CommandBehavior
behavior = _commandBehavior;
98
_useIColumnsRowset = (0 != (
CommandBehavior
.KeyInfo & behavior));
99
_sequentialAccess = (0 != (
CommandBehavior
.SequentialAccess & behavior)); // MDAC 60296
101
_singleRow = (0 != (
CommandBehavior
.SingleRow & behavior));
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));
1050
private bool IsCommandBehavior(
CommandBehavior
condition) {
2240
static internal void GenerateSchemaTable(OleDbDataReader dataReader, object handle,
CommandBehavior
behavior) {
2241
if (0 != (
CommandBehavior
.KeyInfo & behavior)) {
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (1)
71
OleDbDataReader dataReader = new OleDbDataReader(null, null, 0,
CommandBehavior
.Default);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1114
if ((metadata.type == SqlDbType.VarBinary) && (mtSource.IsBinType) && (mtSource.SqlDbType != SqlDbType.Timestamp) && _SqlDataReaderRowSource.IsCommandBehavior(
CommandBehavior
.SequentialAccess)) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (55)
1253
private IAsyncResult BeginExecuteNonQueryInternal(
CommandBehavior
behavior, AsyncCallback callback, object stateObject, int timeout, bool inRetry, bool asyncWrite = false) {
1711
ds = RunExecuteReader(
CommandBehavior
.SequentialAccess, RunBehavior.ReturnImmediately, true, ADP.ExecuteXmlReader);
1737
return BeginExecuteXmlReaderInternal(
CommandBehavior
.SequentialAccess, callback, stateObject, 0, inRetry: false);
1741
return BeginExecuteXmlReaderInternal(
CommandBehavior
.SequentialAccess, callback, stateObject, CommandTimeout, inRetry: false, asyncWrite: true);
1744
private IAsyncResult BeginExecuteXmlReaderInternal(
CommandBehavior
behavior, AsyncCallback callback, object stateObject, int timeout, bool inRetry, bool asyncWrite = false) {
1952
return BeginExecuteReader(null, null,
CommandBehavior
.Default);
1957
return BeginExecuteReader(callback, stateObject,
CommandBehavior
.Default);
1960
override protected DbDataReader ExecuteDbDataReader(
CommandBehavior
behavior) {
1972
return ExecuteReader(
CommandBehavior
.Default, ADP.ExecuteReader);
1980
new public SqlDataReader ExecuteReader(
CommandBehavior
behavior) {
1993
public IAsyncResult BeginExecuteReader(
CommandBehavior
behavior) {
1998
public IAsyncResult BeginExecuteReader(AsyncCallback callback, object stateObject,
CommandBehavior
behavior) {
2004
internal SqlDataReader ExecuteReader(
CommandBehavior
behavior, string method) {
2133
private IAsyncResult BeginExecuteReaderAsync(
CommandBehavior
behavior, AsyncCallback callback, object stateObject) {
2137
private IAsyncResult BeginExecuteReaderInternal(
CommandBehavior
behavior, AsyncCallback callback, object stateObject, int timeout, bool inRetry, bool asyncWrite = false) {
2198
private bool TriggerInternalEndAndRetryIfNecessary(
CommandBehavior
behavior, object stateObject, int timeout, string endMethod, bool usedCache, bool inRetry, bool asyncWrite, TaskCompletionSource<object> globalCompletion, TaskCompletionSource<object> localCompletion, Func<IAsyncResult, string, bool, object> endFunc, Func<
CommandBehavior
, AsyncCallback, object, int, bool, bool, IAsyncResult> retryFunc) {
2448
protected override Task<DbDataReader> ExecuteDbDataReaderAsync(
CommandBehavior
behavior, CancellationToken cancellationToken) {
2458
return ExecuteReaderAsync(
CommandBehavior
.Default, CancellationToken.None);
2461
new public Task<SqlDataReader> ExecuteReaderAsync(
CommandBehavior
behavior) {
2466
return ExecuteReaderAsync(
CommandBehavior
.Default, cancellationToken);
2469
new public Task<SqlDataReader> ExecuteReaderAsync(
CommandBehavior
behavior, CancellationToken cancellationToken) {
3163
Bid.Trace("<sc.SqlCommand.RunExecuteNonQuerySmi|ADV> %d#, innerConnection=%d#, transactionId=0x%I64x, cmdBehavior=%d.\n", ObjectID, innerConnection.ObjectID, transactionId, (int)
CommandBehavior
.Default);
3171
CommandBehavior
.Default,
3178
CommandBehavior
.Default,
3281
private void PrepareForTransparentEncryption(
CommandBehavior
cmdBehavior, bool returnStream, bool async, int timeout, TaskCompletionSource<object> completion, out Task returnTask, bool asyncWrite, out bool usedCache, bool inRetry) {
3673
return RunExecuteReaderTds(
CommandBehavior
.Default,
4096
internal SqlDataReader RunExecuteReader(
CommandBehavior
cmdBehavior, RunBehavior runBehavior, bool returnStream, string method) {
4105
internal SqlDataReader RunExecuteReader(
CommandBehavior
cmdBehavior, RunBehavior runBehavior, bool returnStream, string method, TaskCompletionSource<object> completion, int timeout, out Task task, out bool usedCache, bool asyncWrite = false, bool inRetry = false) {
4114
if (0 != (
CommandBehavior
.SingleRow & cmdBehavior)) {
4116
cmdBehavior |=
CommandBehavior
.SingleResult;
4263
private SqlDataReader RunExecuteReaderTdsWithTransparentParameterEncryption(
CommandBehavior
cmdBehavior,
4342
private SqlDataReader RunExecuteReaderTds(
CommandBehavior
cmdBehavior, RunBehavior runBehavior, bool returnStream, bool async, int timeout, out Task task, bool asyncWrite, bool inRetry, SqlDataReader ds=null, bool describeParameterEncryptionRequest = false) {
4389
bool inSchema = (0 != (cmdBehavior &
CommandBehavior
.SchemaOnly));
4582
private SqlDataReader RunExecuteReaderSmi(
CommandBehavior
cmdBehavior, RunBehavior runBehavior, bool returnStream ) {
5470
private _SqlRPC BuildPrepExec(
CommandBehavior
behavior) {
5617
private void BuildExecuteSql(
CommandBehavior
behavior, string commandText, SqlParameterCollection parameters, ref _SqlRPC rpc) {
5650
bool inSchema = (0 != (behavior &
CommandBehavior
.SchemaOnly));
5900
private string GetSetOptionsString(
CommandBehavior
behavior) {
5903
if ((System.Data.
CommandBehavior
.SchemaOnly == (behavior &
CommandBehavior
.SchemaOnly)) ||
5904
(System.Data.
CommandBehavior
.KeyInfo == (behavior &
CommandBehavior
.KeyInfo))) {
5910
if (System.Data.
CommandBehavior
.KeyInfo == (behavior &
CommandBehavior
.KeyInfo)) {
5914
if (System.Data.
CommandBehavior
.SchemaOnly == (behavior &
CommandBehavior
.SchemaOnly)) {
5922
private string GetResetOptionsString(
CommandBehavior
behavior) {
5926
if (System.Data.
CommandBehavior
.SchemaOnly == (behavior &
CommandBehavior
.SchemaOnly)) {
5931
if (System.Data.
CommandBehavior
.KeyInfo == (behavior &
CommandBehavior
.KeyInfo)) {
5938
private String GetCommandText(
CommandBehavior
behavior) {
5950
private _SqlRPC BuildPrepare(
CommandBehavior
behavior) {
6147
BuildExecuteSql(
CommandBehavior
.Default, commandText, parameters, ref rpc);
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (2)
283
using (SqlDataReader dataReader = sqlCommand.ExecuteReader(
CommandBehavior
.SchemaOnly |
CommandBehavior
.KeyInfo)){
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (6)
259
ValidateCommandBehavior(ADP.ExecuteNonQuery,
CommandBehavior
.Default);
289
private void ValidateCommandBehavior(string method,
CommandBehavior
behavior) {
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 (28)
72
private
CommandBehavior
_commandBehavior;
104
internal SqlDataReader(SqlCommand command,
CommandBehavior
behavior)
882
bool closeConnection = (IsCommandBehavior(
CommandBehavior
.CloseConnection));
1223
return new DbEnumerator(this, IsCommandBehavior(
CommandBehavior
.CloseConnection));
1438
if (IsCommandBehavior(
CommandBehavior
.SequentialAccess)) {
1475
if ((mt.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(
CommandBehavior
.SequentialAccess))) {
1559
if (IsCommandBehavior(
CommandBehavior
.SequentialAccess)) {
1891
if ((mt.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(
CommandBehavior
.SequentialAccess))) {
1968
(IsCommandBehavior(
CommandBehavior
.SequentialAccess)) ) {
2012
if ((_sharedState._nextColumnDataToRead == (i+1)) && (_sharedState._nextColumnHeaderToRead == (i+1)) && (_columnDataChars != null) && (IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && (dataIndex < _columnDataCharsRead)) {
2102
Debug.Assert (IsCommandBehavior(
CommandBehavior
.SequentialAccess), "GetCharsFromPlpData called for non-Sequential access");
2674
bool sequentialAccess = IsCommandBehavior(
CommandBehavior
.SequentialAccess);
2691
_commandBehavior &= ~
CommandBehavior
.SequentialAccess;
2712
_commandBehavior |=
CommandBehavior
.SequentialAccess;
2918
if ((IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && ((_sharedState._nextColumnHeaderToRead > i + 1) || (_lastColumnWithDataChunkRead > i))) {
2938
protected internal bool IsCommandBehavior(
CommandBehavior
condition) {
2987
if (IsCommandBehavior(
CommandBehavior
.SingleResult)) {
3197
_haltRead = IsCommandBehavior(
CommandBehavior
.SingleRow);
3453
((i + 1 < _sharedState._nextColumnDataToRead) && (IsCommandBehavior(
CommandBehavior
.SequentialAccess))) || // Or we're in sequential mode and we've read way past the column (i.e. it was not the last column we read)
3466
bool isSequentialAccess = IsCommandBehavior(
CommandBehavior
.SequentialAccess);
3892
if ((IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && // Only for sequential access
3912
if ((IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && // Only for sequential access
3928
Debug.Assert((!enforceSequentialAccess) || (!IsCommandBehavior(
CommandBehavior
.SequentialAccess)) || ((_sharedState._nextColumnDataToRead <= columnIndex) && (_lastColumnWithDataChunkRead <= columnIndex)), "Already read past column");
3996
Debug.Assert(IsCommandBehavior(
CommandBehavior
.SequentialAccess));
4232
if (IsCommandBehavior(
CommandBehavior
.SequentialAccess)) {
4294
if (!more || (_commandBehavior &
CommandBehavior
.SequentialAccess) ==
CommandBehavior
.SequentialAccess) {
4432
if ((!IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && (_sharedState._nextColumnDataToRead > i) && (!cancellationToken.IsCancellationRequested) && (_currentTask == null)) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (6)
232
if (IsCommandBehavior(
CommandBehavior
.SequentialAccess)) {
311
CloseInternal(closeConnection: IsCommandBehavior(
CommandBehavior
.CloseConnection));
860
if ((metaData.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && (!ValueUtilsSmi.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
878
if ((metaData.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && (!ValueUtilsSmi.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
899
if ((IsCommandBehavior(
CommandBehavior
.SequentialAccess)) && (!ValueUtilsSmi.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
960
CommandBehavior
behavior, // behavior specified for this execution
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
7848
dtcReader = new SqlDataReader(null,
CommandBehavior
.Default);
System.Data.Entity (17)
System\Data\EntityClient\EntityCommand.cs (4)
447
return ExecuteReader(
CommandBehavior
.Default);
458
public new EntityDataReader ExecuteReader(
CommandBehavior
behavior)
472
protected override DbDataReader ExecuteDbDataReader(
CommandBehavior
behavior)
512
using (EntityDataReader reader = ExecuteReader(
CommandBehavior
.SequentialAccess))
System\Data\EntityClient\EntityCommandDefinition.cs (5)
369
internal DbDataReader Execute(EntityCommand entityCommand,
CommandBehavior
behavior) {
370
if (
CommandBehavior
.SequentialAccess != (behavior &
CommandBehavior
.SequentialAccess)) {
414
internal DbDataReader ExecuteStoreCommands(EntityCommand entityCommand,
CommandBehavior
behavior)
476
reader = storeProviderCommand.ExecuteReader(behavior & ~
CommandBehavior
.SequentialAccess);
System\Data\EntityClient\EntityDataReader.cs (4)
28
private
CommandBehavior
_behavior;
40
internal EntityDataReader(EntityCommand command, DbDataReader storeDataReader,
CommandBehavior
behavior)
170
if ((this._behavior &
CommandBehavior
.CloseConnection) ==
CommandBehavior
.CloseConnection)
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
116
using (DbDataReader reader = command.ExecuteReader(
CommandBehavior
.SequentialAccess))
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
243
using (DbDataReader reader = m_dbCommand.ExecuteReader(
CommandBehavior
.SequentialAccess))
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
189
storeReader = commandDefinition.ExecuteStoreCommands(entityCommand,
CommandBehavior
.Default);
System\Data\Objects\ObjectContext.cs (1)
2684
storeReader = commandDefinition.ExecuteStoreCommands(entityCommand,
CommandBehavior
.Default);
System.Data.Entity.Design (2)
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
172
using (DbDataReader reader = command.ExecuteReader(
CommandBehavior
.SequentialAccess))
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (1)
56
_reader = _command.ExecuteReader(
CommandBehavior
.SequentialAccess);
System.Web (21)
Profile\SqlProfileProvider.cs (2)
170
reader = cmd.ExecuteReader(
CommandBehavior
.SingleRow);
517
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
Security\SQLMembershipProvider.cs (6)
1128
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
1246
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
1384
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
1481
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
1655
reader = cmd.ExecuteReader(
CommandBehavior
.SingleRow );
1741
reader = cmd.ExecuteReader(
CommandBehavior
.SingleRow );
Security\SQLRoleProvider.cs (6)
185
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
476
reader = cmd.ExecuteReader(
CommandBehavior
.SingleRow);
587
reader = cmd.ExecuteReader(
CommandBehavior
.SingleRow);
641
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
709
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
771
reader = cmd.ExecuteReader(
CommandBehavior
.SequentialAccess);
State\sqlstateclientmanager.cs (3)
494
using(reader = SqlExecuteReaderWithRetry(cmd,
CommandBehavior
.Default)) {
912
static SqlDataReader SqlExecuteReaderWithRetry(SqlCommand cmd,
CommandBehavior
cmdBehavior) {
1006
using(reader = SqlExecuteReaderWithRetry(cmd,
CommandBehavior
.SingleRow)) {
UI\WebControls\SqlDataSourceView.cs (1)
1099
selectResult = command.ExecuteReader(
CommandBehavior
.CloseConnection);
UI\WebParts\SqlPersonalizationProvider.cs (3)
111
reader = command.ExecuteReader(
CommandBehavior
.SequentialAccess);
238
reader = command.ExecuteReader(
CommandBehavior
.SequentialAccess);
526
reader = command.ExecuteReader(
CommandBehavior
.SingleRow);
System.Workflow.Runtime (10)
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 (4)
284
reader = ExecuteReaderRetried(cmd,
CommandBehavior
.CloseConnection);
380
reader = ExecuteReaderRetried(cmd,
CommandBehavior
.CloseConnection);
481
private DbDataReader ExecuteReaderRetried(DbCommand command,
CommandBehavior
behavior)
642
reader = ExecuteReaderRetried(cmd,
CommandBehavior
.CloseConnection);
Tracking\SqlTrackingWorkflowInstance.cs (1)
819
reader = cmd.ExecuteReader(
CommandBehavior
.CloseConnection);