70 references to RunBehavior
System.Data (70)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
1193
_parser.Run(
RunBehavior
.UntilDone, null, null, bulkCopyHandler, _stateObj);
1207
_parser.RunReliably(
RunBehavior
.UntilDone, null, null, bulkCopyHandler, _stateObj);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (24)
172
private
RunBehavior
_cachedRunBehavior =
RunBehavior
.ReturnImmediately;
182
internal
RunBehavior
CachedRunBehavior {
208
_cachedRunBehavior =
RunBehavior
.ReturnImmediately;
233
internal void SetAsyncReaderState (SqlDataReader ds,
RunBehavior
runBehavior, string optionSettings) {
1142
ds = RunExecuteReader(0,
RunBehavior
.ReturnImmediately, true, ADP.ExecuteScalar);
1549
bool result = _stateObj.Parser.TryRun(
RunBehavior
.UntilDone, this, null, null, _stateObj, out dataReady);
1658
SqlDataReader reader = RunExecuteReader(0,
RunBehavior
.UntilDone, false, methodName, completion, timeout, out task, out usedCache, asyncWrite, inRetry);
1711
ds = RunExecuteReader(CommandBehavior.SequentialAccess,
RunBehavior
.ReturnImmediately, true, ADP.ExecuteXmlReader);
1767
RunExecuteReader(behavior,
RunBehavior
.ReturnImmediately, true, ADP.BeginExecuteXmlReader, localCompletion, timeout, out writeTask, out usedCache, asyncWrite, inRetry);
2030
SqlDataReader result = RunExecuteReader(behavior,
RunBehavior
.ReturnImmediately, true, method);
2160
RunExecuteReader(behavior,
RunBehavior
.ReturnImmediately, true, ADP.BeginExecuteReader, localCompletion, timeout, out writeTask, out usedCache, asyncWrite, inRetry);
3120
bool result = _stateObj.Parser.TryRun(
RunBehavior
.UntilDone, this, null, null, _stateObj, out dataReady);
3674
runBehavior:
RunBehavior
.ReturnImmediately, // Other RunBehavior modes will skip reading rows.
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) {
4264
RunBehavior
runBehavior,
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) {
4524
bool result = _stateObj.Parser.TryRun(
RunBehavior
.UntilDone, this, null, null, _stateObj, out dataReady);
4582
private SqlDataReader RunExecuteReaderSmi( CommandBehavior cmdBehavior,
RunBehavior
runBehavior, bool returnStream ) {
4618
if ( ( runBehavior &
RunBehavior
.UntilDone ) != 0 ) {
4682
private void FinishExecuteReader(SqlDataReader ds,
RunBehavior
runBehavior, string resetOptionsString, bool isInternal, bool forDescribeParameterEncryption, bool shouldCacheForAlwaysEncrypted=true) {
4695
if (runBehavior ==
RunBehavior
.UntilDone) {
4699
bool result = _stateObj.Parser.TryRun(
RunBehavior
.UntilDone, this, ds, null, _stateObj, out dataReady);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (11)
933
if (!parser.TryRun(
RunBehavior
.Clean, _command, this, null, stateObj, out ignored)) {
1130
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, _command, this, null, _stateObj, out ignored)) {
2812
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, _command, this, null, _stateObj, out ignored)) {
2887
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, _command, this, null, _stateObj, out ignored)) {
3180
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, _command, this, null, _stateObj, out _sharedState._dataReady)) {
3223
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, _command, this, null, _stateObj, out _sharedState._dataReady)) {
3691
parser.Run(
RunBehavior
.UntilDone, _command, this, null, stateObj);
3713
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, _command, this, null, _stateObj, out ignored)) {
3724
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, _command, null, null, _stateObj, out ignored)) {
3787
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, null, null, null, _stateObj, out ignored)) {
3802
if (!_parser.TryRun(
RunBehavior
.ReturnImmediately, null, null, null, _stateObj, out ignored)) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (4)
673
_parser.Run(
RunBehavior
.UntilDone, null, null, null, _parser._physicalStateObj);
890
_parser.Run(
RunBehavior
.UntilDone, null, null, null, _parser._physicalStateObj);
1034
_parser.Run(
RunBehavior
.UntilDone, null, null, null, _parser._physicalStateObj);
1201
_parser.Run(
RunBehavior
.UntilDone, null, null, null, _parser._physicalStateObj);
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (1)
344
transactionLevelCommand.RunExecuteReader(0,
RunBehavior
.UntilDone, false /* returnDataStream */, ADP.GetServerTransactionLevel);
fx\src\data\System\Data\SqlClient\TdsParser.cs (28)
1734
internal bool RunReliably(
RunBehavior
runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) {
1766
internal bool Run(
RunBehavior
runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) {
1820
internal bool TryRun(
RunBehavior
runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, out bool dataReady) {
1838
runBehavior =
RunBehavior
.Attention;
1845
if (
RunBehavior
.Clean != (
RunBehavior
.Clean & runBehavior)) {
1907
if (
RunBehavior
.Clean != (
RunBehavior
.Clean & runBehavior)) {
1940
runBehavior =
RunBehavior
.UntilDone;
1950
runBehavior =
RunBehavior
.UntilDone;
2047
if (
RunBehavior
.ReturnImmediately != (
RunBehavior
.ReturnImmediately & runBehavior)) {
2237
else if (
RunBehavior
.ReturnImmediately != (
RunBehavior
.ReturnImmediately & runBehavior)) {
2311
(
RunBehavior
.ReturnImmediately != (
RunBehavior
.ReturnImmediately & runBehavior))) ||
2343
if (
RunBehavior
.Clean != (
RunBehavior
.Clean & runBehavior) && !stateObj._internalTimeout) {
2676
private bool TryProcessDone(SqlCommand cmd, SqlDataReader reader, ref
RunBehavior
run, TdsParserStateObject stateObj) {
2761
stateObj._errorTokenReceived == false && (
RunBehavior
.Clean != (
RunBehavior
.Clean & run))) {
2766
run =
RunBehavior
.UntilDone;
2774
if ((TdsEnums.DONE_SRVERROR == (TdsEnums.DONE_SRVERROR & status)) && (
RunBehavior
.Clean != (
RunBehavior
.Clean & run))) {
2779
run =
RunBehavior
.UntilDone;
3824
Run(
RunBehavior
.Clean, null, null, null, stateObj);
6862
Run(
RunBehavior
.Attention, null, null, null, stateObj);
7860
Run(
RunBehavior
.UntilDone, null, null, null, stateObj);