2 writes to _SqlRPCBatchArray
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
6108_SqlRPCBatchArray = null; 6160_SqlRPCBatchArray = _RPCList.ToArray();
32 references to _SqlRPCBatchArray
System.Data (32)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (32)
3598for (int i = 0; i < _SqlRPCBatchArray.Length; i++) { 3601if (_SqlRPCBatchArray[i].parameters.Length > 1) { 3602_SqlRPCBatchArray[i].needsFetchParameterEncryptionMetadata = true; 3608PrepareDescribeParameterEncryptionRequest(_SqlRPCBatchArray[i], ref rpcDescribeParameterEncryptionRequest, i==0?serializedAttestatationParameters:null); 3615describeParameterEncryptionRpcOriginalRpcDictionary.Add(rpcDescribeParameterEncryptionRequest, _SqlRPCBatchArray[i]); 3632Debug.Assert(_sqlRPCParameterEncryptionReqArray.Length <= _SqlRPCBatchArray.Length, 4082for (int i = 0; i < _SqlRPCBatchArray.Length; i++) { 4083if (_SqlRPCBatchArray[i].needsFetchParameterEncryptionMetadata) { 4084throw SQL.ProcEncryptionMetadataMissing(_SqlRPCBatchArray[i].rpcName); 4433Debug.Assert(_SqlRPCBatchArray != null, "RunExecuteReader rpc array not provided"); 4434writeTask = _stateObj.Parser.TdsExecuteRPC(this, _SqlRPCBatchArray, timeout, inSchema, this.Notification, _stateObj, CommandType.StoredProcedure == CommandType, sync: !asyncWrite ); 5056_SqlRPCBatchArray[_currentlyExecutingBatch].cumulativeRecordsAffected = _rowsAffected; 5058_SqlRPCBatchArray[_currentlyExecutingBatch].recordsAffected = 5060? (_rowsAffected - Math.Max(_SqlRPCBatchArray[_currentlyExecutingBatch-1].cumulativeRecordsAffected, 0)) 5065_SqlRPCBatchArray[_currentlyExecutingBatch].errorsIndexStart = 5067? _SqlRPCBatchArray[_currentlyExecutingBatch-1].errorsIndexEnd 5069_SqlRPCBatchArray[_currentlyExecutingBatch].errorsIndexEnd = _stateObj.ErrorCount; 5070_SqlRPCBatchArray[_currentlyExecutingBatch].errors = _stateObj._errors; 5074_SqlRPCBatchArray[_currentlyExecutingBatch].warningsIndexStart = 5076? _SqlRPCBatchArray[_currentlyExecutingBatch-1].warningsIndexEnd 5078_SqlRPCBatchArray[_currentlyExecutingBatch].warningsIndexEnd = _stateObj.WarningCount; 5079_SqlRPCBatchArray[_currentlyExecutingBatch].warnings = _stateObj._warnings; 6168Debug.Assert(_SqlRPCBatchArray != null, "batch command have been cleared"); 6169return _SqlRPCBatchArray[commandIndex].recordsAffected; 6174int length = (_SqlRPCBatchArray[commandIndex].errorsIndexEnd - _SqlRPCBatchArray[commandIndex].errorsIndexStart); 6177for(int i = _SqlRPCBatchArray[commandIndex].errorsIndexStart; i < _SqlRPCBatchArray[commandIndex].errorsIndexEnd; ++i) { 6178errors.Add(_SqlRPCBatchArray[commandIndex].errors[i]); 6180for(int i = _SqlRPCBatchArray[commandIndex].warningsIndexStart; i < _SqlRPCBatchArray[commandIndex].warningsIndexEnd; ++i) { 6181errors.Add(_SqlRPCBatchArray[commandIndex].warnings[i]);