27 references to IsCommandBehavior
System.Data (27)
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\SqlDataReader.cs (21)
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);
2918
if ((
IsCommandBehavior
(CommandBehavior.SequentialAccess)) && ((_sharedState._nextColumnHeaderToRead > i + 1) || (_lastColumnWithDataChunkRead > i))) {
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)) {
4432
if ((!
IsCommandBehavior
(CommandBehavior.SequentialAccess)) && (_sharedState._nextColumnDataToRead > i) && (!cancellationToken.IsCancellationRequested) && (_currentTask == null)) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (5)
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))) {