Class CommandBatchStep
Represents a single steps inside a command batch.
Inheritance
System.Object
CommandBatchStep
Namespace: Paradigm.ORM.Data.Batching
Assembly: Paradigm.ORM.Data.dll
Syntax
public class CommandBatchStep : object, ICommandBatchStep, IDisposable
Constructors
| Improve this Doc View SourceCommandBatchStep(IDatabaseCommand)
Initializes a new instance of the CommandBatchStep class.
Declaration
public CommandBatchStep(IDatabaseCommand command)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseCommand | command | The command. |
CommandBatchStep(IDatabaseCommand, Action<IDatabaseReader>)
Initializes a new instance of the CommandBatchStep class.
Declaration
public CommandBatchStep(IDatabaseCommand command, Action<IDatabaseReader> batchResultCallback)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseCommand | command | The command. |
Action<IDatabaseReader> | batchResultCallback | The batch result callback. |
CommandBatchStep(IDatabaseCommand, Func<IDatabaseReader, Task>)
Initializes a new instance of the CommandBatchStep class.
Declaration
public CommandBatchStep(IDatabaseCommand command, Func<IDatabaseReader, Task> batchResultCallbackAsync)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseCommand | command | The command. |
Func<IDatabaseReader, Task> | batchResultCallbackAsync | The batch result callback asynchronous. |
Properties
| Improve this Doc View SourceBatchResultCallback
Gets the batch result callback.
Declaration
public Action<IDatabaseReader> BatchResultCallback { get; }
Property Value
Type | Description |
---|---|
Action<IDatabaseReader> |
BatchResultCallbackAsync
Gets the asynchronous batch result callback.
Declaration
public Func<IDatabaseReader, Task> BatchResultCallbackAsync { get; }
Property Value
Type | Description |
---|---|
Func<IDatabaseReader, Task> |
Command
Gets the command.
Declaration
public IDatabaseCommand Command { get; }
Property Value
Type | Description |
---|---|
IDatabaseCommand |
Methods
| Improve this Doc View SourceDispose()
Releases unmanaged and - optionally - managed resources.
Declaration
public void Dispose()
Implements
IDisposable