GetBatchedRecordsAffected Method
GetBatchedRecordsAffected(int, out int, out Exception)
Called to retrieve the records affected from a specific batched command,
first argument is the value that was returned by AddToBatch when it
was called for the command.
Default implementation always returns 1, derived classes override for otherwise
otherwise DbConcurrencyException will only be thrown if sum of all records in batch is 0.
return 0 to cause Update to throw DbConcurrencyException
Declaration
protected override bool GetBatchedRecordsAffected(int commandIdentifier, out int recordsAffected, out Exception error)
Protected Overrides Function GetBatchedRecordsAffected(commandIdentifier As Integer, ByRef recordsAffected As Integer, ByRef [error] As Exception) As Boolean
Parameters
| Type |
Name |
Description |
| int |
commandIdentifier |
|
| int |
recordsAffected |
|
| Exception |
error |
|
Returns
Overrides