UpdateBatchSize Property
Syntax:
public int UpdateBatchSize { get; set; }
Description:
Type: System.Int32
Gets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch. Possible values are:
| Value | Effect |
|---|---|
| 0 | There is no limit on the batch size. |
| 1 | Disables batch updating. |
| >1 | Changes are sent using batches of this size. |
The ADO .NET Data Provider for RDM does not support batch processing, so setting this value to anything other than 1 will result in an exception.
Exceptions:
| Exception | Condition |
|---|---|
| ArgumentException | The value is not a valid RdmParameter. |
| ArgumentException | The specified parameter is already contained in another collection. |
| IndexOutOfRangeException | A parameter of the specified name does not exist |
Reference:
For more information, reference MSDN documentation for: System.Data.Common.DbDataAdapter.UpdateCommand