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)
3598
for (int i = 0; i <
_SqlRPCBatchArray
.Length; i++) {
3601
if (
_SqlRPCBatchArray
[i].parameters.Length > 1) {
3602
_SqlRPCBatchArray
[i].needsFetchParameterEncryptionMetadata = true;
3608
PrepareDescribeParameterEncryptionRequest(
_SqlRPCBatchArray
[i], ref rpcDescribeParameterEncryptionRequest, i==0?serializedAttestatationParameters:null);
3615
describeParameterEncryptionRpcOriginalRpcDictionary.Add(rpcDescribeParameterEncryptionRequest,
_SqlRPCBatchArray
[i]);
3632
Debug.Assert(_sqlRPCParameterEncryptionReqArray.Length <=
_SqlRPCBatchArray
.Length,
4082
for (int i = 0; i <
_SqlRPCBatchArray
.Length; i++) {
4083
if (
_SqlRPCBatchArray
[i].needsFetchParameterEncryptionMetadata) {
4084
throw SQL.ProcEncryptionMetadataMissing(
_SqlRPCBatchArray
[i].rpcName);
4433
Debug.Assert(
_SqlRPCBatchArray
!= null, "RunExecuteReader rpc array not provided");
4434
writeTask = _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;
6168
Debug.Assert(
_SqlRPCBatchArray
!= null, "batch command have been cleared");
6169
return
_SqlRPCBatchArray
[commandIndex].recordsAffected;
6174
int length = (
_SqlRPCBatchArray
[commandIndex].errorsIndexEnd -
_SqlRPCBatchArray
[commandIndex].errorsIndexStart);
6177
for(int i =
_SqlRPCBatchArray
[commandIndex].errorsIndexStart; i <
_SqlRPCBatchArray
[commandIndex].errorsIndexEnd; ++i) {
6178
errors.Add(
_SqlRPCBatchArray
[commandIndex].errors[i]);
6180
for(int i =
_SqlRPCBatchArray
[commandIndex].warningsIndexStart; i <
_SqlRPCBatchArray
[commandIndex].warningsIndexEnd; ++i) {
6181
errors.Add(
_SqlRPCBatchArray
[commandIndex].warnings[i]);