System.Data.Common.DbDataAdapter.UpdatedRowStatusSkip C# (CSharp) Method

UpdatedRowStatusSkip() private method

private UpdatedRowStatusSkip ( BatchCommandInfo batchCommands, int commandCount ) : int
batchCommands BatchCommandInfo
commandCount int
return int
        private int UpdatedRowStatusSkip(BatchCommandInfo[] batchCommands, int commandCount)
        {
            Debug.Assert(null != batchCommands, "null batchCommands?");

            int cumulativeDataRowsAffected = 0;

            for (int i = 0; i < commandCount; i++)
            {
                DataRow row = batchCommands[i]._row;
                Debug.Assert(null != row, "null dataRow?");
                if (0 != ((DataRowState.Detached | DataRowState.Unchanged) & row.RowState))
                {
                    cumulativeDataRowsAffected++;
                }
            }
            return cumulativeDataRowsAffected;
        }