Here are the examples of the csharp api class System.Data.Common.DbDataAdapter.UpdatedRowStatusSkip(System.Data.Common.DbDataAdapter.BatchCommandInfo[], int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licenseprivate 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; }