Show / Hide Table of Contents

Class CommandBatchStep

Represents a single steps inside a command batch.

Inheritance
System.Object
CommandBatchStep
Implements
ICommandBatchStep
IDisposable
Namespace: Paradigm.ORM.Data.Batching
Assembly: Paradigm.ORM.Data.dll
Syntax
public class CommandBatchStep : object, ICommandBatchStep, IDisposable

Constructors

| Improve this Doc View Source

CommandBatchStep(IDatabaseCommand)

Initializes a new instance of the CommandBatchStep class.

Declaration
public CommandBatchStep(IDatabaseCommand command)
Parameters
Type Name Description
IDatabaseCommand command

The command.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

BatchResultCallback

Gets the batch result callback.

Declaration
public Action<IDatabaseReader> BatchResultCallback { get; }
Property Value
Type Description
Action<IDatabaseReader>
| Improve this Doc View Source

BatchResultCallbackAsync

Gets the asynchronous batch result callback.

Declaration
public Func<IDatabaseReader, Task> BatchResultCallbackAsync { get; }
Property Value
Type Description
Func<IDatabaseReader, Task>
| Improve this Doc View Source

Command

Gets the command.

Declaration
public IDatabaseCommand Command { get; }
Property Value
Type Description
IDatabaseCommand

Methods

| Improve this Doc View Source

Dispose()

Releases unmanaged and - optionally - managed resources.

Declaration
public void Dispose()

Implements

ICommandBatchStep
IDisposable

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)

See Also

ICommandBatchStep
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.