[]
The base class for a custom C1DataAdapterBase with DbCommand as a generic input type
public abstract class C1DataAdapterBase<TCommandImpl> : C1DataAdapterBase, IComponent, IDisposable, ICloneable, IDbDataAdapter, IDataAdapter where TCommandImpl : DbCommand
Name | Description |
---|---|
TCommandImpl |
Name | Description |
---|---|
C1DataAdapterBase() | Initializes a new instance of the C1DataAdapterBase class. |
Name | Description |
---|---|
DeleteCommand | Gets or sets an SQL statement to delete records from the data source. |
InsertCommand | Gets or sets an SQL statement used to insert new records into the data source. |
SelectCommand | Gets or sets an SQL statement to retrieve records from the data source. |
UpdateBatchSize | Gets or sets the number of commands that can be executed in a single batch, also effectively enabling (>1) or disabling batch support. |
UpdateCommand | Gets or sets an SQL statement used to update records in the data source. |
Name | Description |
---|---|
AddToBatch(IDbCommand) | Invoked for every row affected based on the current records in DataTable. It got called the same amount of times as the value of UpdateBatchSize. |
ClearBatch() | Once ExecuteBatch finished, this will get invoked automatically. |
CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping) | Initializes a new instance of the RowUpdatedEventArgs class. |
CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping) | Initializes a new instance of the RowUpdatingEventArgs class. |
ExecuteBatch() | Once all AddToBatch are invoked (based on the Batch Size), this method is invoked. |
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 |
InitializeBatching() | Initialize Batching operation. Only get invoked when UpdateBatchSize > 1. |
TerminateBatching() | When Batching is terminated, this method got invoked automatically. |