System.Data.Common.DbDataAdapter.UpdatedRowStatusContinue(System.Data.Common.RowUpdatedEventArgs, System.Data.Common.DbDataAdapter.BatchCommandInfo[], int)

Here are the examples of the csharp api class System.Data.Common.DbDataAdapter.UpdatedRowStatusContinue(System.Data.Common.RowUpdatedEventArgs, System.Data.Common.DbDataAdapter.BatchCommandInfo[], int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: referencesource
Source File: DbDataAdapter.cs
private int UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchComm/n ..... /n //View Source file for more details /n }

2. Example

Project: referencesource
Source File: DbDataAdapter.cs
private int UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, int commandCount) {
            Debug.Assert(null != rowUpdatedEvent, "null rowUpdatedEvent");
            int cumulativeDataRowsAffected = 0;
            switch (rowUpdatedEvent.Status) {
            case UpdateStatus.Continue:
                cumulativeDataRowsAffected = UpdatedRowStatusContinue(rowUpdatedEvent, batchCommands, commandCount);
                break; // return to foreach DataRow
            case UpdateStatus.ErrorsOccurred:
                cumulativeDataRowsAffected = UpdatedRowStatusErrors(rowUpdatedEvent, batchCommands, commandCount);
                break; // no datarow affected if ErrorsOccured
            case UpdateStatus.SkipCurrentRow:
            case UpdateStatus.SkipAllRemainingRows: // cancel the Update method
                cumulativeDataRowsAffected = UpdatedRowStatusSkip(batchCommands, commandCount);
                break; // foreach DataRow without accepting changes on this row (but user may haved accepted chagnes for us)
            default:
                throw ADP.InvalidUpdateStatus(rowUpdatedEvent.Status);
            } // switch RowUpdatedEventArgs.Status
            return cumulativeDataRowsAffected;
        }