The IBatcher type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AbortBatch |
Must be called when an exception occurs.
| |
| AddToBatch |
Add an insert / delete / update to the current batch (might be called multiple times
for a single PrepareBatchStatement())
| |
| CancelLastQuery |
Cancel the current query statement
| |
| CloseCommand |
Close a IDbCommand opened using PrepareCommand() | |
| CloseCommands |
Close any query statements that were left lying around
| |
| CloseReader |
Close a IDataReader opened using ExecuteReader(IDbCommand) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
| ExecuteBatch |
Execute the batch
| |
| ExecuteNonQuery |
Executes the IDbCommand.
| |
| ExecuteReader |
Gets an IDataReader by calling ExecuteReader on the IDbCommand.
| |
| ExpandQueryParameters |
Expand the parameters of the cmd to have a single parameter for each parameter in the
sql string
| |
| PrepareBatchCommand |
Get a batchable IDbCommand to use for inserting / deleting / updating
(might be called many times before a single call to ExecuteBatch() | |
| PrepareCommand |
Get a non-batchable an IDbCommand to use for inserting / deleting / updating.
Must be explicitly released by CloseCommand() | |
| PrepareQueryCommand |
Get an IDbCommand for using in loading / querying.
| |
| RemoveUnusedCommandParameters |
Properties
| Name | Description | |
|---|---|---|
| BatchSize |
Gets or sets the size of the batch, this can change dynamically by
calling the session's SetBatchSize.
| |
| HasOpenResources |
Gets the value indicating whether there are any open resources
managed by this batcher (IDbCommands or IDataReaders).
|